shish 3 年 前
コミット
8e1dd7fe53
1 ファイル変更1 行追加1 行削除
  1. 1 1
      app-ghs/controllers/ProductController.php

+ 1 - 1
app-ghs/controllers/ProductController.php

@@ -36,7 +36,7 @@ class ProductController extends BaseController
         ProductClass::check($info, $this->mainId);
         $str = $post['date'] ?? '';
         $presell = $post['presell'] ?? 0;
-        if (empty($string)) {
+        if (empty($str)) {
             util::fail('请填写预售日期');
         }
         $arr = json_decode($str, true);