更新
This commit is contained in:
parent
90e4cc0ac5
commit
fd3c6a6f3d
@ -61,8 +61,9 @@ class IndexController extends BaseApiController
|
||||
*/
|
||||
public function config()
|
||||
{
|
||||
$parmas=$this->request->param();
|
||||
$group_id=$this->userInfo?$this->userInfo['group_id']:1;
|
||||
$result = IndexLogic::getConfigData($group_id);
|
||||
$result = IndexLogic::getConfigData($group_id,$parmas);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
@ -106,7 +106,7 @@ class IndexLogic extends BaseLogic
|
||||
* @author 段誉
|
||||
* @date 2022/9/21 19:38
|
||||
*/
|
||||
public static function getConfigData($group_id = 1)
|
||||
public static function getConfigData($group_id = 1,$parmas)
|
||||
{
|
||||
if ($group_id == null) {
|
||||
$group_id = 1;
|
||||
@ -156,9 +156,9 @@ class IndexLogic extends BaseLogic
|
||||
];
|
||||
$versionInfo = [];
|
||||
$version='1.0.0';
|
||||
if(self::isAndroid()){
|
||||
if(isset($parmas['os'])&&$parmas['os']=='android'||self::isAndroid()){
|
||||
$versionInfo=AppUpdate::where('type',2)->order('id','desc')->find();
|
||||
}elseif(self::isIOS()){
|
||||
}elseif(isset($parmas['os'])&&$parmas['os']=='ios'||self::isIOS()){
|
||||
$versionInfo=AppUpdate::where('type',1)->order('id','desc')->find();
|
||||
}
|
||||
if($versionInfo){
|
||||
|
Loading…
x
Reference in New Issue
Block a user