where('bill',$params['bill'])->value('id'); //halt($fid); $list = $api->getAllNodes($fid); //halt($list); // $model = new \addons\antis\model\Staff(); // $list = $model->order('id',"asc")->where('id','<',20)->select(); // $num = 101; // foreach ($list as $v){ // $v->num = $num; // $v->save(); // $num++; // } // $thread = \think\Db::name('fastflow_thread')->limit(10)->order('id desc')->select(); // halt($thread); // halt(\think\Cache::get('a_commonsource')); halt(\think\Cache::get('abbbb')); // $all_must_check_steps = \think\Cache::get('a_all_must_check_steps'); $sources = \think\Cache::get('a_sources'); $must_checks = []; foreach ($sources as $source) { if (in_array($source, $all_must_check_steps)) { $must_checks[] = $source; } } $this->success('返回成功', $must_checks); } /** * 无需登录的接口 * */ public function test1() { $this->success('返回成功', ['action' => 'test1']); } /** * 需要登录的接口 * */ public function test2() { $this->success('返回成功', ['action' => 'test2']); } /** * 需要登录且需要验证有相应组的权限 * */ public function test3() { $this->success('返回成功', ['action' => 'test3']); } }