|
|
@@ -3376,10 +3376,19 @@ class User extends BaseController
|
|
3376
|
3376
|
$uid = $this->request->uid();
|
|
3377
|
3377
|
$userInfo = Db::name('UserCertification')->where('uid', $uid)->field('user_name,user_card,card_type')->find();
|
|
3378
|
3378
|
$res = GzcApiRequest::checkAmount($userInfo);
|
|
3379
|
|
- if(is_string($res)) {
|
|
3380
|
|
- return app('json')->fail($res);
|
|
3381
|
|
- }
|
|
3382
|
|
- return app('json')->success(['amount' => sprintf("%01.2f", $res * 0.01)]);
|
|
|
3379
|
+// if(is_string($res)) {
|
|
|
3380
|
+// return app('json')->fail($res);
|
|
|
3381
|
+// }
|
|
|
3382
|
+// return app('json')->success(['amount' => sprintf("%01.2f", $res * 0.01)]);
|
|
|
3383
|
+ $cxbResponseData = $res['response'];
|
|
|
3384
|
+ $xfbResponseData = $res['responsetwo'];
|
|
|
3385
|
+ $amount = $res['amount'];
|
|
|
3386
|
+ return app('json')->success([
|
|
|
3387
|
+ 'amount' => sprintf("%01.2f", $amount * 0.01),
|
|
|
3388
|
+ 'cxbResponseData' => $cxbResponseData,
|
|
|
3389
|
+ 'xfbResponseData' => $xfbResponseData,
|
|
|
3390
|
+ ]);
|
|
|
3391
|
+
|
|
3383
|
3392
|
}
|
|
3384
|
3393
|
|
|
3385
|
3394
|
public function check_user_annual_fee()
|