diff --git a/app/command/CleanViteJs.php b/app/command/CleanViteJs.php index a96f667..a7e0c65 100644 --- a/app/command/CleanViteJs.php +++ b/app/command/CleanViteJs.php @@ -265,7 +265,7 @@ class CleanViteJs extends Command $flag = true; } - if(strpos('暂无搜索结果,提交需求反馈', $file)!==false){ + if(strpos($file, '暂无搜索结果,提交需求反馈')!==false){ $file = str_replace('暂无搜索结果,提交需求反馈', '暂无搜索结果', $file); $flag = true; } diff --git a/app/controller/Api.php b/app/controller/Api.php index 9634205..630e6bc 100644 --- a/app/controller/Api.php +++ b/app/controller/Api.php @@ -328,6 +328,49 @@ class Api extends BaseController return json(['status'=>true,'err_no'=>0,'msg'=>'获取成功','data'=>$data]); } + //宝塔云控版本信息 + public function cloudc_version_info(){ + return json(['status'=>true,'msg'=>'获取成功','data'=>[ + 'version' => '1.0.5', + 'download' => '', + 'uptime' => '2025/06/16', + 'upmsg' => '暂无更新日志' + ]]); + } + + //宝塔云控版本信息 + public function cloudc_get_version(){ + return json(['status'=>true,'msg'=>'','oid'=>'','data'=>[ + 'officialVersion' => [ + 'version' => '1.0.5', + 'download' => '', + 'uptime' => '2025/06/16', + 'updateMsg' => '暂无更新日志' + ], + ]]); + } + + //宝塔云控授权信息 + public function cloudc_order_status(){ + $data = [ + 'status' => true, + 'msg' => '获取成功', + 'oid' => '', + 'data' => [ + 'id' => 1, + 'address' => real_ip(), + 'buytime' => time(), + 'endtime' => time() + 86400 * 3650, + 'num' => 9999, + 'max_num' => 9999, + 'pid' => 100000023, + 'renew_price' => 0, + 'state' => 1, + ] + ]; + return json($data); + } + //获取内测版更新日志 public function get_beta_logs(){ return json(['beta_ps'=>'当前暂无内测版', 'list'=>[]]); diff --git a/route/app.php b/route/app.php index 4e7a2f3..10ade12 100644 --- a/route/app.php +++ b/route/app.php @@ -152,6 +152,11 @@ Route::group('api', function () { Route::get('/panel/getLatestOfficialVersion', 'api/get_version_en'); Route::post('/cert/user/list', 'api/nps_questions'); + Route::post('/Auth/GetCloudToken', 'api/get_auth_token'); + Route::post('/cloudtro/version_info', 'api/cloudc_version_info'); + Route::post('/cloudtro/get_version', 'api/cloudc_get_version'); + Route::post('/cloudtro/get_product_order_status_v1', 'api/cloudc_order_status'); + Route::miss('api/return_error'); });