You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
828 B

8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
  1. <?php
  2. namespace App\Http\Controllers\Api;
  3. use App\Http\Controllers\Api\CommonController;
  4. use Illuminate\Http\Request;
  5. use App\Common\ReturnData;
  6. use App\Common\Token;
  7. class IndexController extends CommonController
  8. {
  9. public function __construct()
  10. {
  11. parent::__construct();
  12. }
  13. //安卓升级信息
  14. public function andriodUpgrade()
  15. {
  16. $res = array(
  17. 'appname' => 'lqycms', //app名字
  18. 'serverVersion' => 2, //服务器版本号
  19. 'serverFlag' => 1, //服务器标志
  20. 'lastForce' => 0, //是否强制更新,0不强制,1强制
  21. 'updateurl' => 'http://api.52danchuang.com/wap/app-release.apk', //apk下载地址
  22. 'upgradeinfo' => '描述:3.0.0' //版本更新的描述
  23. );
  24. return ReturnData::create(ReturnData::SUCCESS, $res);
  25. }
  26. }