This commit is contained in:
2023-03-16 20:04:53 +08:00
parent 5d2dc5d2c0
commit 21320b3ea4
9 changed files with 123 additions and 32 deletions
+2 -1
View File
@@ -4,6 +4,7 @@ namespace Extend\TencentIm;
use App\Constants\HttpEnumCode;
use App\Exception\BusinessException;
use App\Utils\Log;
use GuzzleHttp\Exception\GuzzleException;
use Hyperf\Snowflake\IdGeneratorInterface;
use Hyperf\Utils\ApplicationContext;
@@ -88,7 +89,7 @@ class Message extends Base
try {
// 合并发送参数
$arg = array_merge($this->arg,$arg);
Log::getInstance()->info(json_encode($arg,JSON_UNESCAPED_UNICODE));
$options = [
"json"=> $arg
];
+12
View File
@@ -9,6 +9,18 @@ class RecentContact extends Base
{
// 分页拉取会话列表
public function getRecentContactPage(){
$options = [
"json"=> [
"Operator_Account"=>"491925054435950592",
"Peer_Account"=>"492404831991414785",
"MaxCnt"=>50,
"MinTime"=> 1678872105,
"MaxTime"=> time(),
]
];
$path = $this->config['base_url'] . "v4/openim/admin_getroammsg?" . $this->buildRequestParams();
$result = $this->postRequest($path,$options);
dump($result);die;
}
}