提交 9a9a4291 编写于 作者: G gongfuxiang

钱包充值

上级 42de50ae
......@@ -353,16 +353,21 @@ class PayService
);
if(Db::name('PluginsWalletRecharge')->where(['id'=>$params['recharge']['id']])->update($upd_data))
{
// 字段名称 金额类型
$money_field = [
['field' => 'normal_money', 'money_type' => 0, 'msg' => ' [ '.$pay_price.'元 ]'],
];
// 是否有赠送金额
$give_money = self::RechargeGiveMoneyHandle($pay_price);
// 字段名称 金额类型
if($give_money > 0)
{
$money_field[] = ['field' => 'give_money', 'money_type' => 2, 'msg' => ' [ 赠送'.$give_money.'元 ]'];
$money_field = [
['field' => 'normal_money', 'money_type' => 0, 'msg' => ' [ '.$pay_price.'元, 赠送'.$give_money.'元 ]'],
['field' => 'give_money', 'money_type' => 2, 'msg' => ' [ 赠送'.$give_money.'元 ]'],
];
} else {
$money_field = [
['field' => 'normal_money', 'money_type' => 0, 'msg' => ' [ '.$pay_price.'元 ]'],
];
}
// 钱包更新数据
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册