|
@@ -59,7 +59,13 @@ 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;
|
|
|
}
|
|
@@ -74,7 +80,7 @@ class UserService
|
|
|
UserTaskService::addUserTaskQueue($uid, BaseTask::add_desk, UserTaskService::add_trigger);
|
|
|
$time = time() - $start;
|
|
|
if ($time >= 1 ){
|
|
|
- sendNotice("加桌队列-mq-投递超过1耗时".$time);
|
|
|
+ sendNotice("加桌任务队列-mq-投递超过1耗时".$time."s;路径:app/Modules/User/Services/UserService.php-qappAddDesktop方法 74行");
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -88,7 +94,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);
|
|
|
+ sendNotice("加桌队列-mq-投递超过1耗时".$time."s;路径:app/Modules/User/Services/UserService.php-qappAddDesktop方法 88行");
|
|
|
}
|
|
|
}
|
|
|
//第一次加桌 没有任何记录,加桌状态为0
|
|
@@ -111,7 +117,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);
|
|
|
+ sendNotice("加桌队列-mq-投递超过1耗时".$time."s;路径:app/Modules/User/Services/UserService.php-qappAddDesktop方法 111行");
|
|
|
}
|
|
|
return false;
|
|
|
}
|