wangzq 2 years ago
parent
commit
b4983959b9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/Http/Controllers/QuickApp/User/UserController.php

+ 1 - 0
app/Http/Controllers/QuickApp/User/UserController.php

@@ -390,6 +390,7 @@ class UserController extends BaseController
 
 
         // 琥珀阅读去除加桌任务
         // 琥珀阅读去除加桌任务
         if ($this->distribution_channel_id == 14903 && $new_user_tasks){
         if ($this->distribution_channel_id == 14903 && $new_user_tasks){
+            $new_user_tasks =  $new_user_tasks->toArray();
             foreach ($new_user_tasks as $key =>  $val){
             foreach ($new_user_tasks as $key =>  $val){
                 if ($val->code == "add_desk"){
                 if ($val->code == "add_desk"){
                     unset($new_user_tasks[$key]);
                     unset($new_user_tasks[$key]);