22
This commit is contained in:
@@ -11,7 +11,7 @@ class Message
|
||||
{
|
||||
$data['recvID'] = $recvID;
|
||||
$data['groupID'] = '';
|
||||
$data['sessionType'] = 2;
|
||||
$data['sessionType'] = 1;
|
||||
return $this->sendMessage($sendID,$data);
|
||||
}
|
||||
public function sendGroupMessage(string $sendID, string $groupID = '', array $data=[]): array
|
||||
|
||||
@@ -85,6 +85,7 @@ class Utils
|
||||
public static function send(string $path, array $data): array|bool
|
||||
{
|
||||
|
||||
$token = '';
|
||||
if($path != Url::$getAdminToken){
|
||||
$token = Utils::getAdminToken();
|
||||
}
|
||||
@@ -92,11 +93,11 @@ class Utils
|
||||
$res = self::request($url, $data, $token);
|
||||
$res = json_decode($res, true);
|
||||
if($res['errCode'] !==0 ){
|
||||
cp('=============================调试信息=====================================');
|
||||
cp($url);
|
||||
cp(json_encode($data));
|
||||
cp($res);
|
||||
cp('=============================end=====================================');
|
||||
\support\Log::error('=============================调试信息=====================================');
|
||||
\support\Log::error($url);
|
||||
\support\Log::error($data);
|
||||
\support\Log::error($res);
|
||||
\support\Log::error('=============================end=====================================');
|
||||
|
||||
throw new \Exception($res['errMsg'],$res['errCode']);
|
||||
//throw new \Exception($res['errDlt'],$res['errCode']);
|
||||
|
||||
Reference in New Issue
Block a user