\s*(.*?)<\/span>\s*<\/span>/', $html, $matches); $uplist=array(); if ($matches[1]) { $messages = $matches[1]; // Array of all matched messages foreach ($messages as $message) { $uplist[]=$message; // var_dump($message); // Process each message } } Cache::set("getnumber",$uplist,1024); } //平台总用户 $ptzuser=Db::name("member")->count(); //平台托管机器人 $ptzbot=Db::name("admin_bot")->count(); //平台机器人总余额 $ptzbotmoney=Db::name("admin_bot")->sum('money'); //平台总利润 $ptlirun=Db::name("order")->sum('slirun'); return $this->success('返回成功', ['uplist'=>$uplist,'ptzuser'=>$ptzuser,'ptzbot'=>$ptzbot,'ptzbotmoney'=>$ptzbotmoney,'ptlirun'=>$ptlirun]); } }