MiniUpgradeController.php 628 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace pt\controllers;
  3. use bizHd\wx\services\MiniUpgradeService;
  4. use common\components\util;
  5. use Yii;
  6. use yii\web\Controller;
  7. class MiniUpgradeController extends BaseController
  8. {
  9. //审核记录
  10. public function actionList()
  11. {
  12. $where = [];
  13. $status = Yii::$app->request->get('status', -1);
  14. if ($status != -1) {
  15. $where['status'] = $status;
  16. }
  17. $list = MiniUpgradeService::getUpgradeList($where);
  18. $list['version'] = 11;
  19. util::success($list);
  20. }
  21. //更新版本 ssh 2019.12.20
  22. public function actionUpdate()
  23. {
  24. $version = Yii::$app->request->get('version');
  25. util::complete('提交成功');
  26. }
  27. }