修复码支付回调BUG,顺带回收昨天的Flag

Rin SAMA 9 years ago
parent 0f9ac60a8e
commit fd059cb886

@ -638,7 +638,7 @@ class Pay
$user=User::find($trade->userid);
$user->money=$user->money+$_POST['total_amount'];
$user->save();
//更新充值(捐赠)记录
$codeq=new Code();
$codeq->code="支付宝 充值";
@ -732,12 +732,7 @@ class Pay
}
}
if ($codeq!=null){
echo '
<script>
alert("支付成功,第三方支付小飞机pay祝您购物愉快");
window.location.href="/user/code";
</script>
';
return;
}
}

@ -58,6 +58,10 @@ $System_Config['smtp_sender'] = '';
$System_Config['smtp_passsword'] = '';
$System_Config['smtp_ssl'] = 'true';
# sendgrid
$System_Config['sendgrid_key'] = '';
$System_Config['sendgrid_sender'] = '';
//备份设置-----------------------------------------------------------------------
$System_Config['enable_auto_backup']='false';
@ -146,8 +150,8 @@ $System_Config['payment_system']='none';
#codepay码支付
#wiki地址:https://goo.gl/dRwRDi http://t.cn/RnsWjtB
$System_Config['codepay_id']='';//码支付ID
$System_Config['codepay_key']='';//码支付通信密钥
$System_Config['codepay_id']=''; //码支付ID
$System_Config['codepay_key']=''; //码支付通信密钥
#doiampay,https://www.daimiyun.cn/v3/
$System_Config['doiampay']=[

Loading…
Cancel
Save