Browse Source

修改资料接口,争取不报错

lizhen_gitee 1 năm trước cách đây
mục cha
commit
0adcdd37e5
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      application/api/controller/User.php

+ 1 - 1
application/api/controller/User.php

@@ -417,7 +417,7 @@ class User extends Api
         }
         //dump($data);
         if(empty($data)){
-            $this->error('没有任何改变');
+            $this->success();
         }
 
         Db::startTrans();