管理后台-封禁-调试
This commit is contained in:
@@ -271,7 +271,12 @@ class User extends adminApi
|
||||
return V(0, "添加失败");
|
||||
}
|
||||
//加推送单聊消息
|
||||
$content = "您的账号因 含有".model('Block')->getBanReason()[$ban_eason] . "内容 于".date('Y-m-d H:i:s',time())." 被封禁".model('Block')->getBanTime()[$ban_day]." ,".date('Y-m-d H:i:s',$block_time)."解封,如对处罚有异议请及时联系管理员申诉";
|
||||
if($block_time){
|
||||
$content = "您的账号因 含有".model('Block')->getBanReason()[$ban_eason] . "内容 于".date('Y-m-d H:i:s',time())." 被封禁".model('Block')->getBanTime()[$ban_day]." ,".date('Y-m-d H:i:s',$block_time)."解封,如对处罚有异议请及时联系管理员申诉";
|
||||
}else{
|
||||
$content = "您的账号因 含有".model('Block')->getBanReason()[$ban_eason] . "内容 于".date('Y-m-d H:i:s',time())." 被永久封禁".model('Block')->getBanTime()[$ban_day]." ,请及时联系管理员申诉";
|
||||
}
|
||||
|
||||
$text = [
|
||||
'MsgType' => 404,
|
||||
'ToUserId' => $user_id,
|
||||
|
||||
@@ -413,11 +413,7 @@ class Tencent extends Model
|
||||
'From_Account' => strval($from_Account),
|
||||
'To_Account' => strval('u'.$receive_uid),
|
||||
'MsgRandom' => time(),
|
||||
'SendMsgControl' => array(
|
||||
"NoUnread",
|
||||
"NoLastMsg",
|
||||
"NoMsgCheck"
|
||||
),
|
||||
'SendMsgControl' => ["NoUnread", "NoLastMsg", "NoMsgCheck"],
|
||||
'MsgBody' => array(
|
||||
array(
|
||||
'MsgType' => 'TIMCustomElem',
|
||||
|
||||
Reference in New Issue
Block a user