@@ -82,7 +82,11 @@ class PicTextController extends BaseController
}
$ext->purchaseGuide = $picTextId;
$ext->save();
- $shop->buyNotice = $switch == 1 ? 1 : 0;
+ if($switch == 1){
+ $shop->buyNotice = 1;
+ }else{
+ $shop->buyNotice = 0;
+ }
$shop->save();
util::complete('修改成功');