shish 4 years ago
parent
commit
59b4b28d8d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app-pt/controllers/ApplyController.php

+ 1 - 1
app-pt/controllers/ApplyController.php

@@ -38,7 +38,7 @@ class ApplyController extends BaseController
         if (isset($apply['status']) && $apply['status'] == 2) {
             util::fail('已经审过了');
         }
-        if ($apply['style'] == dict::getDict('ptStyle', 'ghs')) {
+        if (isset($apply['style']) && $apply['style'] != dict::getDict('ptStyle', 'ghs')) {
             util::fail('暂时只支持审核批发商的申请');
         }
         $connection = Yii::$app->db;