Browse Source

update merchant name

ayHaru 4 years ago
parent
commit
3e128ee9d8
1 changed files with 1 additions and 1 deletions
  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')