Commit 8622fef886f35f634ad3282a88238f641814c425

Authored by teemitop
1 parent 949a51bd

给flag默认值 值为 1

@@ -17,7 +17,7 @@ class Api{ @@ -17,7 +17,7 @@ class Api{
17 } 17 }
18 //获取最新版本 18 //获取最新版本
19 public function compareVersion() { 19 public function compareVersion() {
20 - $flag = input('get.flag') ? input('get.flag') : ''; 20 + $flag = input('get.flag') ? input('get.flag') : 1;
21 $list = db('android')->where(array('flag'=>$flag))->select(); 21 $list = db('android')->where(array('flag'=>$flag))->select();
22 if(isset($list)){ 22 if(isset($list)){
23 foreach ($list as $key => $value) { 23 foreach ($list as $key => $value) {