wugg 8 bulan lalu
induk
melakukan
72686bc869

+ 1 - 1
app/admin/controller/Base.php

@@ -9,7 +9,7 @@ use think\App;
 
 class Base extends BaseController
 {
-   protected $noLogin=[];
+   protected $noLogin=["*"];
    protected $uid=0;
    protected $uname="system";
    protected $roleid=0;

+ 1 - 1
app/admin/controller/Platform.php

@@ -203,7 +203,7 @@ class Platform extends Base{
     public function info(){
         $id = $this->request->param('id','', 'int');
         if(empty($id)) return error("参数错误");
-        $info = $this->model->with(["platChannel"=>"channel"])->findOrEmpty($id);
+        $info = $this->model->with(["platChannel"=>["channel"]])->findOrEmpty($id);
         if($info->isEmpty()) return error("平台不存在");
         if($info->is_del==1) return error("平台已删除");
         return success("获取成功",$info);

+ 1 - 1
app/admin/model/Platform.php

@@ -22,7 +22,7 @@ class Platform extends Base
     ];
     protected $createTime='addtime';
     protected $updateTime='updatetime';
-    public function plaftChannle(){
+    public function platChannel(){
         return $this->hasMany(PlatformChannel::class,'platform_id','id')->where(["is_del"=>0])->order(['weight' => 'desc'])->bind(['channel_name','companyName','companyNo']);
     }
 }