1 个管道
的构建
通过
耗费
0 秒
更新 UsersController.php
正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
@@ -479,7 +479,6 @@ class UsersController extends HomeBaseController{ | @@ -479,7 +479,6 @@ class UsersController extends HomeBaseController{ | ||
479 | 'spbill_create_ip' => get_client_ip(0, true), //发起交易的IP地址 | 479 | 'spbill_create_ip' => get_client_ip(0, true), //发起交易的IP地址 |
480 | ]; | 480 | ]; |
481 | $re = $merchantPay->send($merchantPayData); | 481 | $re = $merchantPay->send($merchantPayData); |
482 | - $this->apiResponse(200,$re); | ||
483 | if ($re['return_code']=='SUCCESS' && $re['result_code']=='SUCCESS'){ | 482 | if ($re['return_code']=='SUCCESS' && $re['result_code']=='SUCCESS'){ |
484 | Db::startTrans(); | 483 | Db::startTrans(); |
485 | try{ | 484 | try{ |
@@ -497,10 +496,11 @@ class UsersController extends HomeBaseController{ | @@ -497,10 +496,11 @@ class UsersController extends HomeBaseController{ | ||
497 | $this->apiResponse(301,'提现失败'); | 496 | $this->apiResponse(301,'提现失败'); |
498 | } | 497 | } |
499 | $this->apiResponse(200,'success'); | 498 | $this->apiResponse(200,'success'); |
500 | - } | 499 | + }else{ |
500 | + $this->apiResponse(301,'提现失败'); | ||
501 | + } | ||
501 | }else{ | 502 | }else{ |
502 | $this->apiResponse(300,'余额不足提现失败'); | 503 | $this->apiResponse(300,'余额不足提现失败'); |
503 | } | 504 | } |
504 | - | ||
505 | } | 505 | } |
506 | } | 506 | } |
-
请 注册 或 登录 后发表评论