新增im清除会话接口,新增定时商品订单上报处方平台

This commit is contained in:
2023-04-11 17:20:58 +08:00
parent 179977ec26
commit 3e577c8cac
8 changed files with 240 additions and 32 deletions
+2
View File
@@ -4,6 +4,7 @@ namespace Extend\Prescription;
use App\Constants\HttpEnumCode;
use App\Exception\BusinessException;
use App\Utils\Log;
use GuzzleHttp\Client;
use GuzzleHttp\Exception\GuzzleException;
use Hyperf\Di\Annotation\Inject;
@@ -273,6 +274,7 @@ class Prescription
// 返回值为空
throw new BusinessException(HttpEnumCode::getMessage(HttpEnumCode::SERVER_ERROR));
}
Log::getInstance()->info("处方平台请求结果:",$body);
return $body;
}
+15
View File
@@ -23,4 +23,19 @@ class RecentContact extends Base
$result = $this->postRequest($path,$options);
dump($result);die;
}
// 清楚会话
public function deleteRecentContact(){
$options = [
"json"=> [
"From_Account"=>"497444475121803265",
"Type"=> 1,
// "To_Account"=>"502418068290932736",
"ClearRamble"=> 1,
]
];
$path = $this->config['base_url'] . "v4/recentcontact/delete?" . $this->buildRequestParams();
$result = $this->postRequest($path,$options);
}
}