to_user_type

This commit is contained in:
2025-11-24 11:25:10 +08:00
parent 8982010423
commit 1451340cf5
2 changed files with 2 additions and 2 deletions

View File

@@ -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'])
) {

View File

@@ -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]));