stanley-king %!s(int64=4) %!d(string=hai) anos
pai
achega
0ca02a45e0
Modificáronse 2 ficheiros con 3 adicións e 1 borrados
  1. 1 0
      mobile/control/merchant_login.php
  2. 2 1
      mobile/control/merchant_refill.php

+ 1 - 0
mobile/control/merchant_login.php

@@ -38,6 +38,7 @@ class merchant_loginControl extends merchantwebControl
                 $mch_info['ips'] = unserialize($mch_info['ip_white_list']);
             }
             $_SESSION['mchid'] = $mch_info['mchid'];
+            $_SESSION['member_id'] = $mch_info['admin_id'];
 
             return self::outsuccess([]);
         } else {

+ 2 - 1
mobile/control/merchant_refill.php

@@ -15,7 +15,8 @@ class merchant_refillControl extends mbMerchantControl
     {
         $goods = refill\RefillFactory::instance()->goods();
 
-        $result = [];
+        $result['oil_amount'] = [];
+        $result['phone_amount'] = [];
         foreach ($goods as $type => $specs)
         {
             if($type == mtopcard\SinopecCard || $type == mtopcard\PetroChinaCard) {