master
tpingzhang 5 years ago
parent 673d3d0523
commit 8a27004caf

@ -1095,6 +1095,10 @@ ADD COLUMN `pay_url` text NULL AFTER `check_sign`;
/** /**
*微信支付 *微信支付
*ALTER TABLE `tab_spend`
ADD COLUMN `pay_url` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL AFTER `old_promote_account`;
*/ */
public function weixin_pay($user_id,$game_id) { public function weixin_pay($user_id,$game_id) {
$file=file_get_contents("./Application/Sdk/OrderNo/".$user_id."-".$game_id.".txt"); $file=file_get_contents("./Application/Sdk/OrderNo/".$user_id."-".$game_id.".txt");
@ -1152,9 +1156,10 @@ ADD COLUMN `pay_url` text NULL AFTER `check_sign`;
if($is_pay['status']==1){ if($is_pay['status']==1){
if($request['code']==1){ if($request['code']==1){
$json_data['url'] = $is_pay['mweb_url'].'&redirect_url='.C('PAY_DOMAIN')."sdk.php/Spend/paycallback/orderno/{$request['pay_order_number']}/user_token/".I('request.user_token');
$request['pay_url'] = $json_data['url'];
$this->add_spend($request,1); $this->add_spend($request,1);
}else{
$this->add_deposit($request, 1);
} }
$json_data['url'] = $is_pay['mweb_url'].'&redirect_url='.C('PAY_DOMAIN')."sdk.php/Spend/paycallback/orderno/{$request['pay_order_number']}/game_id/{$request['game_id']}"; $json_data['url'] = $is_pay['mweb_url'].'&redirect_url='.C('PAY_DOMAIN')."sdk.php/Spend/paycallback/orderno/{$request['pay_order_number']}/game_id/{$request['game_id']}";

Loading…
Cancel
Save