|
@@ -9,6 +9,7 @@ use app\common\model\Cooperation;
|
|
|
use app\common\model\DownloadLink;
|
|
|
use app\common\model\Faq;
|
|
|
use app\common\model\VersionComparison;
|
|
|
+use app\common\model\VersionUpdating;
|
|
|
use app\common\model\Visit;
|
|
|
use app\common\model\VisitConfiguration;
|
|
|
|
|
@@ -153,8 +154,13 @@ class Community extends Api
|
|
|
* 版本更新
|
|
|
*/
|
|
|
public function version_updating(){
|
|
|
- $res = VersionComparison::all();
|
|
|
- $this->success($res);
|
|
|
+ $data = VersionUpdating::all();
|
|
|
+ $res = [];
|
|
|
+ foreach ($data as $k=>$v){
|
|
|
+ array_push($res,$v->toarray());
|
|
|
+ }
|
|
|
+ $list = $this->getTree($res,'id','pid','children');
|
|
|
+ $this->success($list);
|
|
|
}
|
|
|
/**
|
|
|
* 论坛
|