diff --git a/app/Utils/Pay.php b/app/Utils/Pay.php index 32512911..b8af9d5f 100644 --- a/app/Utils/Pay.php +++ b/app/Utils/Pay.php @@ -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 ' - - '; + return; } } diff --git a/config/.config.php.example b/config/.config.php.example index d6a66dad..654a327e 100644 --- a/config/.config.php.example +++ b/config/.config.php.example @@ -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']=[