shish 10 månader sedan
förälder
incheckning
c089a355a2
1 ändrade filer med 5 tillägg och 1 borttagningar
  1. 5 1
      app-ghs/controllers/PicTextController.php

+ 5 - 1
app-ghs/controllers/PicTextController.php

@@ -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('修改成功');
     }