dyjh 6 yıl önce
ebeveyn
işleme
2aec45a1a2

+ 7 - 0
app/Http/Controllers/Api/V1/AlbumController.php

xqd
@@ -2032,6 +2032,13 @@ class AlbumController extends Controller
             $customer->phone = $user->phone;
             $customer->avatar = $user->avatar;
             $customer->username = $user->username;
+        } else {
+            $customer = (object)[
+                'purpose_level' => 1,
+                'comment'       => '备注名',
+                'tips'          => '客户有合作意向',
+                'address'       => '四川省成都市'
+            ];
         }
         return $this->api(compact('customer'));
     }