|
@@ -59,6 +59,11 @@ class UserService
|
|
myLog('incrAddDeskTop')->info('qappAddDesktop', compact('uid', 'status'));
|
|
myLog('incrAddDeskTop')->info('qappAddDesktop', compact('uid', 'status'));
|
|
$log = QappUserAddDestop::where('uid', $uid)->orderBy('id', 'desc')->first();
|
|
$log = QappUserAddDestop::where('uid', $uid)->orderBy('id', 'desc')->first();
|
|
|
|
|
|
|
|
+ if($status == 1){
|
|
|
|
+ myLog('incrAddDeskTop')->info('qappAddDesktopTask', compact('uid', 'status'));
|
|
|
|
+ UserTaskService::addUserTaskQueue($uid, BaseTask::add_desk, UserTaskService::add_trigger);
|
|
|
|
+ }
|
|
|
|
+
|
|
if (!$log) {
|
|
if (!$log) {
|
|
//第一次加桌 没有任何记录,加桌状态为1
|
|
//第一次加桌 没有任何记录,加桌状态为1
|
|
if($status == 1){
|
|
if($status == 1){
|
|
@@ -93,11 +98,6 @@ class UserService
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
|
|
- if($status == 1){
|
|
|
|
- myLog('incrAddDeskTop')->info('qappAddDesktopTask', compact('uid', 'status'));
|
|
|
|
- UserTaskService::addUserTaskQueue($uid, BaseTask::add_desk, UserTaskService::add_trigger);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
// 加桌统计
|
|
// 加桌统计
|
|
if (!$log && $status == 1) {
|
|
if (!$log && $status == 1) {
|
|
QappAddDeskTopService::incrAddDeskTop($uid, QuickConst::FIELD_ADD_DESKTOP);
|
|
QappAddDeskTopService::incrAddDeskTop($uid, QuickConst::FIELD_ADD_DESKTOP);
|