gq 7 tahun lalu
induk
melakukan
115c944f8e
1 mengubah file dengan 13 tambahan dan 13 penghapusan
  1. 13 13
      server/app/Http/Controllers/Api/V1/MyController.php

+ 13 - 13
server/app/Http/Controllers/Api/V1/MyController.php

xqd xqd xqd xqd
@@ -357,10 +357,10 @@ class MyController extends Controller
      * @apiSuccessExample {json} Success-Response:
      * HTTP/1.1 200 OK
      *{
-     *   "status": false,
-     *  "status_code": 200,
-     *  "message": "操作成功",
-     *  "data": null
+     *  "status": true,
+     *  "status_code": 0,
+     *  "message": "",
+     *  "data": ""
      *}
      * @apiErrorExample {json} Error-Response:
      *{
@@ -764,10 +764,10 @@ class MyController extends Controller
      * @apiSuccessExample {json} Success-Response:
      * HTTP/1.1 200 OK
      *{
-     *   "status": false,
-     *  "status_code": 200,
-     *  "message": "操作成功",
-     *  "data": null
+     *  "status": true,
+     *  "status_code": 0,
+     *  "message": "",
+     *  "data": ""
      *}
      * @apiErrorExample {json} Error-Response:
      *{
@@ -799,7 +799,7 @@ class MyController extends Controller
         $data['user_id'] = $user->id;
         $ok =UserBank::create($data);
         if ($ok) {
-            return $this->error('');
+            return $this->api('');
         }else{
             return $this->error(ErrorCode::OPERATION_FAILED);
         }
@@ -815,10 +815,10 @@ class MyController extends Controller
      * @apiSuccessExample {json} Success-Response:
      * HTTP/1.1 200 OK
      *{
-     *   "status": false,
-     *  "status_code": 200,
-     *  "message": "操作成功",
-     *  "data": null
+     *  "status": true,
+     *  "status_code": 0,
+     *  "message": "",
+     *  "data": ""
      *}
      * @apiErrorExample {json} Error-Response:
      *{