|
|
@@ -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('变更失败');
|