| 123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- namespace addons\WechatVideoShop\backend\controllers;
- use addons\WechatVideoShop\common\models\WechatVideoShopRegion;
- class RegionController extends BaseController
- {
- public $enableCsrfValidation = false;
- public function actionDiff()
- {
- if (\Yii::$app->request->isAjax) {
- if (\Yii::$app->request->isPost) {
- }
- if (\Yii::$app->request->isGet) {
- $regions = WechatVideoShopRegion::lists([
- 'where' => [
- ['local_id' => 0],
- ['<', 'level', 4],
- ],
- 'order' => 'id asc'
- ]);
- // 本地地区
- return $this->success('获取成功', [
- 'list' => $regions,
- 'local_list' => []
- ]);
- }
- }
- return $this->render('diff');
- }
- }
|