auth->warehouseid; $params=$this->request->post(); $POSTCODE = $params['postcode']; $TIMECODE = $params['timecode']; $redis = new \Redis(); $redis->connect('47.100.78.112', 6379); $redis->auth('qwe2019'); $redis->select(2); $data = []; $infos = $redis->get("ExpressSummary_".$POSTCODE."_".$TIMECODE."_".$WAREHOUSEID); if($infos){ $data = json_decode($infos); } $this->success("获取成功",$data); /* $redis->lpush('subscribe_tasks',json_encode(['taskID'=>$taskID,'POSTCODE'=>$POSTCODE])); */ } public function refresh(){ $WAREHOUSEID = $this->auth->warehouseid; $req = Http::get("http://file.gztbyc.com/express/ExpressSummary"); $this->success("成功",$req); } }