hrjy 3 سال پیش
والد
کامیت
86ed93f8b5
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      app/api/controller/user/CardController.php

+ 1 - 1
app/api/controller/user/CardController.php

@@ -102,7 +102,7 @@ class CardController
      */
      */
     public function wechat(Request $request)
     public function wechat(Request $request)
     {
     {
-        list($card_id, $type, $from) = UtilService::postMore([['card_id', 0], ['type', 0]], $request, true);
+        list($card_id, $type, $from) = UtilService::postMore([['card_id', 0], ['type', 0], ['from', 0]], $request, true);
         switch ((int)$type) {
         switch ((int)$type) {
             case 0: //支付充值余额
             case 0: //支付充值余额
                 $order = CardOrder::addCard($request->uid(), $card_id, 'weixinh5');
                 $order = CardOrder::addCard($request->uid(), $card_id, 'weixinh5');