Explorar o código

update merchant name

ayHaru %!s(int64=4) %!d(string=hai) anos
pai
achega
3e128ee9d8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      helper/statistics/stat_refill.php

+ 1 - 1
helper/statistics/stat_refill.php

@@ -15,7 +15,7 @@ class stat_refill
         $items = $mod_merchant->getMerchantList(['mchid' => ['gt',0]]);
         foreach ($items as $item) {
             $mchid = intval($item['mchid']);
-            $this->mMerchantNames[$mchid] = $item['name'];
+            $this->mMerchantNames[$mchid] = !empty($item['company_name']) ? $item['company_name'] : $item['name'];
         }
 
         $items = Model('')->table('refill_provider,store')