|
@@ -59,13 +59,7 @@ class UserService
|
|
|
{
|
|
|
$key = "last_add_desktop_status";
|
|
|
$last_status = Redis::hget($key,$uid);
|
|
|
- $time = 2;
|
|
|
- sendNotice("测试勿管-加桌队列-mq-投递超过1耗时".$time."s;路径:app/Modules/User/Services/UserService.php-qappAddDesktop方法 111行");
|
|
|
- echo "<pre><hr>";
|
|
|
- var_export("测试勿管-加桌队列-mq-投递超过1耗时".$time."s;路径:app/Modules/User/Services/UserService.php-qappAddDesktop方法 111行");
|
|
|
- echo "<hr>";
|
|
|
- die();
|
|
|
- return ;
|
|
|
+
|
|
|
if ($last_status != NULL && $last_status == $status){
|
|
|
return false;
|
|
|
}
|
|
@@ -80,7 +74,7 @@ class UserService
|
|
|
UserTaskService::addUserTaskQueue($uid, BaseTask::add_desk, UserTaskService::add_trigger);
|
|
|
$time = time() - $start;
|
|
|
if ($time >= 1 ){
|
|
|
- sendNotice("加桌任务队列-mq-投递超过1耗时".$time."s;路径:app/Modules/User/Services/UserService.php-qappAddDesktop方法 74行");
|
|
|
+ myLog('mq-put-timeout')->info("加桌任务队列-mq-投递超过1耗时".$time."s;路径:app/Modules/User/Services/UserService.php-qappAddDesktop方法 74行");
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -94,7 +88,7 @@ class UserService
|
|
|
dispatch($job)->onConnection('rabbitmq')->onQueue('qapp_user_add_desk')->delay(now()->addMinutes(3));
|
|
|
$time = time() - $start;
|
|
|
if ($time >= 1 ){
|
|
|
- sendNotice("加桌队列-mq-投递超过1耗时".$time."s;路径:app/Modules/User/Services/UserService.php-qappAddDesktop方法 88行");
|
|
|
+ myLog('mq-put-timeout')->info("加桌队列-mq-投递超过1耗时".$time."s;路径:app/Modules/User/Services/UserService.php-qappAddDesktop方法 88行");
|
|
|
}
|
|
|
}
|
|
|
//第一次加桌 没有任何记录,加桌状态为0
|
|
@@ -117,7 +111,7 @@ class UserService
|
|
|
dispatch($job)->onConnection('rabbitmq')->onQueue('qapp_user_add_desk')->delay(now()->addMinutes(3));
|
|
|
$time = time() - $start;
|
|
|
if ($time >= 1 ){
|
|
|
- sendNotice("加桌队列-mq-投递超过1耗时".$time."s;路径:app/Modules/User/Services/UserService.php-qappAddDesktop方法 111行");
|
|
|
+ myLog('mq-put-timeout')->info("加桌队列-mq-投递超过1耗时".$time."s;路径:app/Modules/User/Services/UserService.php-qappAddDesktop方法 111行");
|
|
|
}
|
|
|
return false;
|
|
|
}
|