优化队列
This commit is contained in:
@@ -15,9 +15,10 @@ class Tencent extends Model
|
||||
//获取腾讯IM UserSig信息
|
||||
//$uid => 用户id
|
||||
public function tencent_user_sig_info($uid){
|
||||
$config = get_system_config();
|
||||
$tencentyun_im_appid = $config['tencentyun_im_appid'];
|
||||
$tencentyun_im_key = $config['tencentyun_im_key'];
|
||||
|
||||
$tencentyun_im_appid = get_system_config_value('tencentyun_im_appid');
|
||||
$tencentyun_im_key = get_system_config_value('tencentyun_im_key');
|
||||
|
||||
$tencent = new Tencentst($tencentyun_im_appid, $tencentyun_im_key);
|
||||
$user_sig = $tencent->genUserSig($uid);
|
||||
|
||||
@@ -189,8 +190,8 @@ class Tencent extends Model
|
||||
//发送群内系统消息
|
||||
public function send_group_system_notification($rid, $message_data){
|
||||
Log::record("腾讯群内系统消息发送结果".json_encode($rid.$message_data),"info");
|
||||
$config = get_system_config();
|
||||
$tencentyun_im_appid = $config['tencentyun_im_appid'];
|
||||
|
||||
$tencentyun_im_appid = get_system_config_value('tencentyun_im_appid');
|
||||
$im_admin = 'administrator';
|
||||
$admin_sig = $this->tencent_user_sig_info($im_admin);
|
||||
$rand = rand(111111111,9999999999);
|
||||
|
||||
Reference in New Issue
Block a user