Merge remote-tracking branch 'origin/dev' into dev

master
zhengyongxing 5 years ago
commit bea2a59fa4

@ -584,18 +584,10 @@ class ShortcutController extends BaseController{
} else { } else {
$data['redirectUrl'] = C('PAY_DOMAIN').U('Spend/shortcut_notice',array('status'=> 1, 'orderno' => $payInfo['order_id'], 'user_id'=>I('user_id'),'game_id'=>I('game_id'), 'user_token' => I('request.user_token'))); $data['redirectUrl'] = C('PAY_DOMAIN').U('Spend/shortcut_notice',array('status'=> 1, 'orderno' => $payInfo['order_id'], 'user_id'=>I('user_id'),'game_id'=>I('game_id'), 'user_token' => I('request.user_token')));
} }
/* $bankCardNo = I('bankCardNo', '');
$idCardNo = I('idCardNo', '');
$cardName = I('cardName', '');
if (!$bankCardNo || !$idCardNo || !$cardName) {
echo json_encode(['code'=>0,'msg'=> '参数有误']);
exit;
}
$data['paymentParamExt'] = '{"bankCardNo":"'.$bankCardNo.'","idCardNo":"'.$idCardNo.'","cardName":"'.$cardName.'"}';
*/
$data['paymentParamExt'] = '{}'; $data['paymentParamExt'] = '{}';
$yeeData = $yeepay->yee_pay($data); $yeeData = $yeepay->yee_pay($data);
// var_dump($yeeData);//die; // var_dump($data, $yeeData);//die;
if ($yeeData['data']['result']['code'] != 'OPR00000') { if ($yeeData['data']['result']['code'] != 'OPR00000') {
echo json_encode(['code'=>0, 'msg'=> '支付参数有误,请重试'.$yeeData['data']['result']['code']]); echo json_encode(['code'=>0, 'msg'=> '支付参数有误,请重试'.$yeeData['data']['result']['code']]);
exit; exit;

@ -48,9 +48,9 @@ class Yeepay
return -1; // 签名验证失败 return -1; // 签名验证失败
} }
//取得返回结果 //取得返回结果
$data = $this->object_array($response); $ret = $this->object_array($response);
$token=$data['result']['token']; $token= $ret['result']['token'];
$cashter = array( $cashter = array(
"merchantNo" => $merchantNo , "merchantNo" => $merchantNo ,
"token" => $token, "token" => $token,
@ -61,12 +61,12 @@ class Yeepay
"userType" => $data['userType'] ?? '', "userType" => $data['userType'] ?? '',
"ext" => $data['ext'] ?? '', "ext" => $data['ext'] ?? '',
); );
// var_dump($data); // var_dump($data, $cashter);
$getUrl = $this->getUrl($cashter, $privateKey); $getUrl = $this->getUrl($cashter, $privateKey);
$getUrl=str_replace("&timestamp","&timestamp",$getUrl); $getUrl=str_replace("&timestamp","&timestamp",$getUrl);
$url = "https://cash.yeepay.com/cashier/std?" . $getUrl; $url = "https://cash.yeepay.com/cashier/std?" . $getUrl;
// echo $url; // echo $url;
return array('url' => $url, 'data' => $data); return array('url' => $url, 'data' => $ret);
} }

Loading…
Cancel
Save