zory 21 hodín pred
rodič
commit
e25c4e67cc

+ 2 - 3
app/controller/api/Card.php

@@ -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(),
                 ];
                 // 生成预支付码

+ 2 - 2
app/controller/api/Order.php

@@ -193,7 +193,7 @@ class Order extends Base
                 'openid'            => $request->user['openid'],
                 'trade_type'        => 'JSAPI',
                 'spbill_create_ip'  => $request->getRealIp(),
-                "notify_url"        => "https://apiv.ujia5.com/notify/wx"
+                "notify_url"        => "https://panel.huiyinduo.cn/notify/wx"
             ];
             if ($param['pay'] == 3 && !empty($param['card'])) { // 开通会员卡并充值
                 $buyCard = json_decode($param['card'],true);
@@ -206,7 +206,7 @@ class Order extends Base
                 ]);
                 $options['body'] = $shop['shop_name']."-充值支付";
                 $options['total_fee'] = $buyCard['money'] * 100;
-                $options['notify_url'] = "https://apiv.ujia5.com/notify/payrecharge";
+                $options['notify_url'] = "https://panel.huiyinduo.cn/notify/payrecharge";
             }
             (new SaasOrder)->insertGetId($orderData);
             $wechat = new \WeChat\Pay($this->getWxConfig());

BIN
print-api.zip


+ 10 - 0
public/index.html

@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta charset="UTF-8">
+    <title>Title</title>
+</head>
+<body>
+
+</body>
+</html>