|
@@ -46,8 +46,9 @@ class WechatPay extends Api{
|
|
$result = Mini::jscode2session($code);
|
|
$result = Mini::jscode2session($code);
|
|
if (!$result['openid']) return json_send(['code'=>'error','msg'=>'获取openid失败','data'=>$result['error']]);
|
|
if (!$result['openid']) return json_send(['code'=>'error','msg'=>'获取openid失败','data'=>$result['error']]);
|
|
$openid = $result['openid'];
|
|
$openid = $result['openid'];
|
|
|
|
+ $description = '鹏城征订-订单编号'.$orderInfo['snowflake_id'];
|
|
$payment = new Payment();
|
|
$payment = new Payment();
|
|
- return $payment->pay(['out_trade_no' => $orderInfo['snowflake_id'],'openid' => $openid,'description' => '开邻智教课程','total_price' => $orderInfo['pay_total']]);
|
|
|
|
|
|
+ return $payment->pay(['out_trade_no' => $orderInfo['snowflake_id'],'openid' => $openid,'description' => $description,'total_price' => $orderInfo['pay_total']]);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -95,7 +96,7 @@ class WechatPay extends Api{
|
|
}catch (\Exception $e){
|
|
}catch (\Exception $e){
|
|
Log::log('notify_wechat_pay', '错误getMessage:' . $e->getMessage());
|
|
Log::log('notify_wechat_pay', '错误getMessage:' . $e->getMessage());
|
|
}
|
|
}
|
|
- Log::log('notify_wechat_pay', '验签:' . $verifiedStatus.'验签inWechatpayTimestamp:' . $inWechatpayTimestamp.'验签verifiedStatus:' . $inWechatpayNonce);
|
|
|
|
|
|
+ Log::log('notify_wechat_pay', '验签:' . $verifiedStatus.'验签inWechatpayTimestamp:' . $inWechatpayTimestamp.'验签verifiedStatus:' . $inWechatpayNonce.'验签timeOffsetStatus:' . $timeOffsetStatus);
|
|
if ($timeOffsetStatus && $verifiedStatus) {
|
|
if ($timeOffsetStatus && $verifiedStatus) {
|
|
// 转换通知的JSON文本消息为PHP Array数组
|
|
// 转换通知的JSON文本消息为PHP Array数组
|
|
$inBodyArray = (array)json_decode($inBody, true);
|
|
$inBodyArray = (array)json_decode($inBody, true);
|