shish 2 tahun lalu
induk
melakukan
06fe82a821
1 mengubah file dengan 8 tambahan dan 2 penghapusan
  1. 8 2
      app-hd/controllers/GhsController.php

+ 8 - 2
app-hd/controllers/GhsController.php

@@ -228,7 +228,10 @@ class GhsController extends BaseController
             $shareLogo = imgUtil::groupImg($ghsShop->shareLogo);
         }
         $info['shareLogo'] = $shareLogo;
-        $info['superWx'] = imgUtil::groupImg($ghsShop->superWx);
+        $info['superWx'] = '';
+        if (!empty($ghsShop->superWx)) {
+            $info['superWx'] = imgUtil::groupImg($ghsShop->superWx);
+        }
 
         $ghsMainId = $ghsShop->mainId ?? 0;
         $kmPackCost = PurchaseClass::getKmPackCost($ghsMainId);
@@ -287,7 +290,10 @@ class GhsController extends BaseController
                 $shareLogo = imgUtil::groupImg($ghsShop->shareLogo);
             }
             $ghs['shareLogo'] = $shareLogo;
-            $ghs['superWx'] = imgUtil::groupImg($ghsShop->superWx);
+            $ghs['superWx'] = '';
+            if(!empty($ghsShop->superWx)){
+                $ghs['superWx'] = imgUtil::groupImg($ghsShop->superWx);
+            }
 
             $ghs['transCost'] = dict::getDict('transCost', null, null, $ghsShop->mainId);