master
elf 2 years ago
parent f964ab8139
commit 94a3852055

@ -117,7 +117,7 @@ $config = array(
),
'ADMIN_DOMAIN' => 'https://dl.chengfeng123.cn/', // 'http://10.0.1.75:8089/',//
'WX_PAY_LIMIT' => 3000,
'WX_PAY_LIMIT' => 50000,
'PAY_DOMAIN' => 'https://api.chengfeng123.cn/',
'H5_DOMAIN' => 'https://api.chengfeng123.cn/',
'DL_DOMAIN' => 'https://dl.chengfeng123.cn/',
@ -125,4 +125,4 @@ $config = array(
);
return $config;
/* $pay = include(APP_PATH . "/Sdk/Conf/pay.php");
return array_merge($config, $pay); */
return array_merge($config, $pay); */

@ -770,7 +770,7 @@ class PayH5Controller extends BaseController{
}
$request['user_id'] = $this->userId;
echo json_encode(['code'=>0,'msg'=> '目前人数已满']);exit;
// echo json_encode(['code'=>0,'msg'=> '目前人数已满']);exit;
// 支付验证 是否让支付
$payCheck = pay_check($this->userId);
@ -1523,7 +1523,7 @@ class PayH5Controller extends BaseController{
//redirect(U('Spend/notice',array('user_id'=>$user_id,'game_id'=>$game_id,'msg'=>'登录数据不能为空', 'user_token' => $this->userToken)));exit;
}
echo json_encode(['code'=>0,'msg'=> '目前人数已满']);exit;
// echo json_encode(['code'=>0,'msg'=> '目前人数已满']);exit;
// 支付验证 是否让支付
$payCheck = pay_check($user_id);
@ -1613,7 +1613,7 @@ class PayH5Controller extends BaseController{
// (is_ssl()?'https%3A%2F%2F':'http%3A%2F%2F'). $_SERVER ['HTTP_HOST'] . "%2Fsdk.php%2FSpend%2Fpay_success%2Forderno%2F".$request['pay_order_number'].'%2Fgame_id%2F'.$request['game_id'] ;
}else{
echo json_encode(['code'=>0,'msg'=> '支付失败']);
Log::write("platform_weixin_pay支付失败".serialize($is_pay));
Log::write("platform_weixin_pay支付失败".serialize($is_pay) . '---' . serialize($pay_conf));
exit;
// redirect(U('Spend/notice',array('user_id'=>$user_id,'game_id'=>$game_id,'msg'=>'支付失败', 'user_token' => $this->userToken)));exit;
}

@ -319,6 +319,8 @@ class Wxpay_client_pub extends Common_util_pub
function postXml($tt='')
{
$xml = $this->createXml();
$destination = C('LOG_PATH'). 'weixin_pay/' . date('y_m_d').'.log';
Think\Log::write('xml:' . $xml, Think\Log::INFO, '', $destination);
$this->response = $this->postXmlCurl($xml,$this->url,'',$this->curl_timeout,$tt);
return $this->response;
}
@ -329,6 +331,8 @@ class Wxpay_client_pub extends Common_util_pub
function postXmlSSL()
{
$xml = $this->createXml();
$destination = C('LOG_PATH'). 'weixin_pay/' . date('y_m_d').'.log';
Think\Log::write('xml:' . $xml, Think\Log::INFO, '', $destination);
$this->response = $this->postXmlSSLCurl($xml,$this->url,$this->curl_timeout);
return $this->response;
}

Loading…
Cancel
Save