<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                ## 角色權限設置 >[info]功能: 1,顯示數據:查詢控制器中方法上面的注釋 顯示為賬號權限 2,插入數據:新建權限 只需要在寫好的方法上 標明注釋 /* *@desc 寫入權限列表數據 * */ static public function ts(){ $fs = file::find(BASE.'/modules/doc')['file']; foreach($fs as $f){ $fname = file::name($f); if($fname == 'login.php' || $fname == 'admin_users.php' || $fname == 'yf_shop_base.php' || $fname == 'yf_goods_cat.php' || $fname == 'roles.php' || $fname == 'users.php' || $fname == 'logo.php' || $fname == 'configapi.php' || $fname == 'bind_shop.php' || $fname == 'users_bind.php' ){ continue; } $s1 = "doc/".substr($fname,0,strrpos($fname,'.')); $line = file_get_contents($f); preg_match('/desc(.*)\n/', $line, $matche); preg_match_all('/desc(.*)\n+(.*\n?){0,5}public(.*)function(.*)\(/', $line, $matches); if($matches){ $title = $matches[1]; $action = $matches[4]; $new[$s1]['top']['title'] = str_replace("\r"," " ,strip_tags($matche[1])); $new[$s1]['top']['address'] = 'top'; foreach($title as $k=>$ti){ unset($out); $out['address'] = trim($action[$k]); $out['title'] = str_replace("\r","" ,strip_tags($ti)); $out['action'] = $s1."/".trim($action[$k]); $new[$s1][] = $out; } } } if($new){ $list = acl::get()->toArray(); $role = new acl; if(!$list){ foreach($new as $k=>$v){ $data['slug'] = $k; $data['title'] = $v['top']['title']; $pid = $role->insertGetId($data); foreach($v as $k1=>$v1){ if($v1['address'] == 'top') continue; $date['slug'] = $v1['action']; $date['title'] = $v1['title']; $date['pid'] = $pid; $role->insert($date); } } }else{ foreach($new as $k=>$v){ $a = $role->where('slug',$k)->first(); if(!$a){ $data['slug'] = $k; $data['title'] = $v['top']['title']; $pid = $role->insertGetId($data); }else{ $data['slug'] = $k; $data['title'] = $v['top']['title']; $role->where('slug',$k)->update($data); $pid = $a->id; } foreach($v as $k1=>$v1){ if($v1['address'] == 'top') continue; $b = $role->where('slug',$v1['action'])->first(); if(!$b){ $date['slug'] = $v1['action']; $date['title'] = $v1['title']; $date['pid'] = $pid; $role->insert($date); }else{ $date['slug'] = $v1['action']; $date['title'] = $v1['title']; $date['pid'] = $pid; $role->where('slug',$v1['action'])->update($date); } } } } } } /* *@desc 獲取權限列表數據 */ static public function qx(){ $list = self::where('pid',0)->get(); foreach($list as $k=>$v){ $list[$k]['list'] = $v->parent; } return $list; } >[info] 3,編輯數據:修改注釋名稱 `修改注釋即可` 4,刪除數據:刪除權限 `刪除注釋即可` 5,關聯`shop_users` `acl_roles` `roles`
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看