|
@@ -5,6 +5,7 @@ namespace bizGhs\ws\services;
|
|
|
use common\components\baiduAip;
|
|
use common\components\baiduAip;
|
|
|
use common\components\dict;
|
|
use common\components\dict;
|
|
|
use common\components\goWs;
|
|
use common\components\goWs;
|
|
|
|
|
+use common\components\imgUtil;
|
|
|
use common\components\oss;
|
|
use common\components\oss;
|
|
|
use common\components\util;
|
|
use common\components\util;
|
|
|
use GatewayClient\Gateway;
|
|
use GatewayClient\Gateway;
|
|
@@ -26,7 +27,7 @@ class WsService
|
|
|
$file = time() . rand(10000, 999999) . '.mp3';
|
|
$file = time() . rand(10000, 999999) . '.mp3';
|
|
|
$filePath = 'tmp/arrival/money/' . $file;
|
|
$filePath = 'tmp/arrival/money/' . $file;
|
|
|
oss::uploadTmpAudio($filePath, $audio);
|
|
oss::uploadTmpAudio($filePath, $audio);
|
|
|
- $url = 'https://hhb-tmp-audio.oss-cn-hangzhou.aliyuncs.com/' . $filePath;
|
|
|
|
|
|
|
+ $url = imgUtil::getPrefix(). $filePath;
|
|
|
// $audio = base64_encode($audio);
|
|
// $audio = base64_encode($audio);
|
|
|
$data = ['type' => 'money', 'url' => $url, 'msg' => $msg, 'money' => $money];
|
|
$data = ['type' => 'money', 'url' => $url, 'msg' => $msg, 'money' => $money];
|
|
|
$dataString = json_encode($data);
|
|
$dataString = json_encode($data);
|