shish 4 jaren geleden
bovenliggende
commit
ae32b988c2
1 gewijzigde bestanden met toevoegingen van 2 en 0 verwijderingen
  1. 2 0
      app-ghs/controllers/CustomController.php

+ 2 - 0
app-ghs/controllers/CustomController.php

@@ -190,12 +190,14 @@ class CustomController extends BaseController
         $custom = CustomClass::getById($customId, true);
         CustomClass::valid($custom, $this->shopId);
         $custom->black = $black;
+        $custom->save();
         $ghsId = $custom->ghsId ?? 0;
         $ghs = GhsClass::getById($ghsId, true);
         if (empty($ghs)) {
             util::fail('出错了');
         }
         $ghs->black = $black;
+        $ghs->save();
         util::complete();
     }