新增im清除会话接口,新增定时商品订单上报处方平台
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user