dyjh há 6 anos atrás
pai
commit
d3754936ac
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      app/Http/Controllers/Api/V1/AlbumController.php

+ 1 - 1
app/Http/Controllers/Api/V1/AlbumController.php

xqd
@@ -1966,7 +1966,7 @@ class AlbumController extends Controller
         $agent_check = AlbumAgentModel::where([['store_id',$data['store_id']],['user_id',$userAuth->id]])->withTrashed()->first();
         //dd($agent_check);
         if($agent_check){
-            if($agent_check->status==0) return $this->error(ErrorCode::CLIENT_WRONG_PARAMS, '该用户已提交申请!');
+            if($agent_check->status==0 && $agent_check->deleted_at == null) return $this->error(ErrorCode::CLIENT_WRONG_PARAMS, '该用户已提交申请!');
             $agent_check->phone = $data['phone'];
             $agent_check->address = $data['address'];
             if ($agent_check->deleted_at != null) {