function heartUpload()
{
checkAuth();
global $CONF;
$serverId = trim($_POST["serverId"]);
require 'libs/wx/jssdk.php';
$saveMedia = new JSSDK($CONF['wx_appid'], $CONF['wx_appSecret']);
$saveMedia->saveMedia($serverId);
require 'libs/QiNiu.php';
$qiniu = new QINIU;
$path = ROOT_PATH . "/upload/";
$filename = $serverId . ".amr";
$qiniu->upchange($CONF['qn_accessKey'], $CONF['qn_secretKey'], $CONF['qn_bucket'], $CONF['qn_pipeline'], $path . $filename, $serverId);
require DASH_BOARD . '/model/index.php';
$data['err'] = '赞!您的';
die(json_encode($data));
}
Done!
转载请注明原文地址:https://tech.qufami.com/read-9183.html