redis edit
This commit is contained in:
@@ -320,6 +320,7 @@ class Base extends Model
|
||||
|
||||
|
||||
$uid = $gateway::getUidByClientId($client_id);
|
||||
if($uid) {
|
||||
$result = Redis::get($uid);
|
||||
// 处理打印消息
|
||||
if($result) {
|
||||
@@ -331,8 +332,8 @@ class Base extends Model
|
||||
call_user_func_array([$gateway, $v['method']], [$v['send_id'], $v_json]);
|
||||
// 推送以后新增推送次数
|
||||
self::add_log_file('推送收银机订单打印(重试第' . $v['send_num'] . '次)--->' . $v_json, 'cashier');
|
||||
// $redis->set($uid, json_encode($v), self::REDIS_TIME);
|
||||
// array_push($new_arr, $v);
|
||||
// $redis->set($uid, json_encode($v), self::REDIS_TIME);
|
||||
// array_push($new_arr, $v);
|
||||
}else {
|
||||
unset($msg_info_arr[$k]);
|
||||
$msg_info_arr = array_values($msg_info_arr);
|
||||
@@ -347,6 +348,7 @@ class Base extends Model
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Redis::del($client_id);
|
||||
Redis::del($uid);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user