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