|
|
|
@ -539,7 +539,7 @@ class PayH5Controller extends BaseController{
|
|
|
|
|
$notifyUrl = C('PAY_DOMAIN')."/callback.php/Notify/kd_callback";
|
|
|
|
|
$backUrl = C('PAY_DOMAIN')."sdk.php/Spend/paycallback/orderno/{$request['pay_order_number']}/user_token/".$this->userToken."/paytype/weixinpay/game_id/{$game_id}";
|
|
|
|
|
$body = '消费-' . $request["pay_order_number"];
|
|
|
|
|
$response = KDApi::h5Pay($request['pay_order_number'], $request['price']*100, $notifyUrl, $backUrl, 'ALI_PAY', $body, get_client_ip());
|
|
|
|
|
$response = KDApi::h5Pay($request['pay_order_number'], $request['price']*100, $notifyUrl, $backUrl, 'ALIPAY', $body, get_client_ip());
|
|
|
|
|
|
|
|
|
|
if($response->isSuccess()){
|
|
|
|
|
// 存入pay_url 继续支付
|
|
|
|
@ -874,7 +874,7 @@ class PayH5Controller extends BaseController{
|
|
|
|
|
$notifyUrl = C('PAY_DOMAIN')."/callback.php/Notify/kd_callback";
|
|
|
|
|
$backUrl = C('PAY_DOMAIN')."sdk.php/Spend/paycallback/orderno/{$request['pay_order_number']}/user_token/".$this->userToken."/paytype/weixinpay/game_id/{$game_id}";
|
|
|
|
|
$body = '消费-' . $request["pay_order_number"];
|
|
|
|
|
$response = KDApi::h5Pay($request['pay_order_number'], $request['price']*100, $notifyUrl, $backUrl, 'WX_PAY', $body, get_client_ip());
|
|
|
|
|
$response = KDApi::h5Pay($request['pay_order_number'], $request['price']*100, $notifyUrl, $backUrl, 'WXPAY', $body, get_client_ip());
|
|
|
|
|
|
|
|
|
|
if($response->isSuccess()){
|
|
|
|
|
// 存入pay_url 继续支付
|
|
|
|
|