to_user_type
This commit is contained in:
@@ -25,7 +25,7 @@ namespace extend\chat\model;
|
||||
if($message['operate_type'] == 'sendMsg') {
|
||||
if (
|
||||
empty($message['to_id']) ||
|
||||
empty($message['to_id_type']) ||
|
||||
empty($message['to_user_type']) ||
|
||||
empty($message['chat_type']) ||
|
||||
empty($message['msg_type'])
|
||||
) {
|
||||
|
||||
@@ -17,7 +17,7 @@ class Business
|
||||
$sent = Redis::get($set_str);
|
||||
if($sent) {
|
||||
$sent = json_decode($sent, true);
|
||||
$sent[count($sent - 1)] = $set_info_str;
|
||||
$sent[count($sent)] = $set_info_str;
|
||||
Redis::set($set_str, json_encode($sent));
|
||||
}else {
|
||||
Redis::set($set_str, json_encode([$set_info_str]));
|
||||
|
||||
Reference in New Issue
Block a user