Просмотр исходного кода

修改b端接口:验证网站搭建;

FengR 4 месяцев назад
Родитель
Сommit
60022ba377
2 измененных файлов с 6 добавлено и 6 удалено
  1. 3 3
      app/JsonRpc/PublicRpcService.php
  2. 3 3
      app/JsonRpc/WebsiteService.php

+ 3 - 3
app/JsonRpc/PublicRpcService.php

@@ -1,6 +1,6 @@
 <?php
 
-namespace App\JsonRpc;
+namespace App\JsonRpc; 
 
 // use ___PHPSTORM_HELPERS\object;
 use _PHPStan_62c6a0a8b\OndraM\CiDetector\Env;
@@ -8,8 +8,8 @@ use App\Model\BlackWord;
 use App\Model\Department;
 use App\Model\District;
 use App\Model\LetterOfComplaint;
-use App\Model\LetterType;
-use App\Model\LevelUser;
+use App\Model\LetterType; 
+use App\Model\LevelUser; 
 use App\Model\UserLevel;
 use App\Tools\Result;
 use Hyperf\DbConnection\Db;

+ 3 - 3
app/JsonRpc/WebsiteService.php

@@ -2295,9 +2295,9 @@ class WebsiteService implements WebsiteServiceInterface
         // if (!in_array(1, $foot_type) ) {
         //     $missingTypes[] = "列表型底部导航";
         // }
-        if (!in_array(0, $foot_type)) {
-            $missingTypes[] = "单页(详情)";
-        }
+        if (!in_array(0, $foot_type) ) {
+            $missingTypes = "单页(详情)";
+        } 
         if (!empty($missingTypes)) {
             $errorMessage = "请先添加" . $missingTypes . "!";
             return Result::error($errorMessage, 0);