shizhongqi 1 anno fa
parent
commit
65adc8b608
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      app-ghs/controllers/PicTextController.php

+ 3 - 3
app-ghs/controllers/PicTextController.php

@@ -1,8 +1,8 @@
 <?php
 namespace ghs\controllers;
 
-use biz\shop\models\ShopExt;
 use Yii;
+use biz\shop\classes\ShopExtClass;
 use bizGhs\pictext\classes\PicTextClass;
 use common\components\util;
 
@@ -78,9 +78,9 @@ class PicTextController extends BaseController
         }
         if($switch == 1) {
             $picTextId = intval($post['picTextId']);
-            $updateCount = ShopExt::updateByCondition(['shopId' => $shopId], ['purchaseGuide' => $picTextId]);
+            $updateCount = ShopExtClass::updateByCondition(['shopId' => $shopId], ['purchaseGuide' => $picTextId]);
         }else{
-            $updateCount = ShopExt::updateByCondition(['shopId' => $shopId], ['purchaseGuide' => 0]);
+            $updateCount = ShopExtClass::updateByCondition(['shopId' => $shopId], ['purchaseGuide' => 0]);
         }
         if ($updateCount <= 0) {
             util::fail('变更失败');