|
|
@@ -112,13 +112,12 @@ class Card extends Base
|
|
|
$orderSn = strtoupper(CodeExtend::random(12,3));
|
|
|
$buyCard = json_decode($param['card'],true);
|
|
|
$state = (new SaasUserBuy)->insertGetId([
|
|
|
- "uid" => $request->user['id'],
|
|
|
"openid" => $request->user['openid'],
|
|
|
"order_sn" => $orderSn,
|
|
|
"shop_id" => $param['shop'],
|
|
|
"card_no" => $card['card_no'],
|
|
|
"money" => $buyCard['money'] * 100,
|
|
|
- "card_money" => $buyCard['money'] * 100 + $buyCard['old_money'] * 100,
|
|
|
+ "total_money" => $buyCard['money'] * 100 + $buyCard['old_money'] * 100,
|
|
|
"remark" => "赠送金额".$buyCard['old_money']
|
|
|
]);
|
|
|
if ($state) {
|
|
|
@@ -130,7 +129,7 @@ class Card extends Base
|
|
|
'total_fee' => $buyCard['money'] * 100,
|
|
|
'openid' => $request->user['openid'],
|
|
|
'trade_type' => 'JSAPI',
|
|
|
- 'notify_url' => 'https://apiv.ujia5.com/notify/recharge',
|
|
|
+ 'notify_url' => 'https://panel.huiyinduo.cn/notify/recharge',
|
|
|
'spbill_create_ip' => $request->getRealIp(),
|
|
|
];
|
|
|
// 生成预支付码
|