Commit dd645162 authored by clone's avatar clone

bug

parent 710af31d
......@@ -44,4 +44,18 @@ class Version extends Basic
$versionResult = $this->appVersion->getVersion($type);
return $this->response("200", "request success", $versionResult);
}
/**
* 获取最近版本号
* @return \think\Response
*/
public function getVersionNoV2()
{
$type = $this->params["type"]; //0 c端安卓 1c端苹果 2b端安卓 3b端苹果
if(isset($type)){
$this->response("101","请求的设备类型不能为空");
}
$versionResult = $this->appVersion->getVersion($type);
return $this->response("200", "request success", $versionResult);
}
}
\ No newline at end of file
......@@ -108,6 +108,7 @@ Route::group('index', [
//版本管理
'version' => [ 'index/version/index', [ 'method' => 'get' ] ],
'getVersionNo' => [ 'index/version/getVersionNo', [ 'method' => 'post' ] ],
'getVersionNoV2' => [ 'index/version/getVersionNoV2', [ 'method' => 'post' ] ],
'getVersionList' => [ 'index/version/getVersionList', [ 'method' => 'post' ] ],
'addVersion' => [ 'index/version/addVersion', [ 'method' => 'post' ] ],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment