配置修改
This commit is contained in:
@ -4,12 +4,13 @@ namespace app\api\controller;
|
||||
use app\common\basics\Api;
|
||||
use app\api\logic\IndexLogic;
|
||||
use app\common\logic\ChatLogic;
|
||||
use app\common\logic\CityLogic;
|
||||
use app\common\logic\RegionLogic;
|
||||
use app\common\server\JsonServer;
|
||||
|
||||
class Index extends Api
|
||||
{
|
||||
public $like_not_need_login = ['index','hotCity', 'indexCategory', 'config','copyright','city','geocoder'];
|
||||
public $like_not_need_login = ['index','hotCity', 'indexCategory', 'config','copyright','city','geocoder','getEntryCity'];
|
||||
|
||||
// 首页
|
||||
public function index()
|
||||
@ -114,4 +115,18 @@ class Index extends Api
|
||||
}
|
||||
return JsonServer::success('',$result);
|
||||
}
|
||||
|
||||
/**
|
||||
* 小程序进入时获取应展示的城市商城
|
||||
* 未扫码:上海总部;扫码:码主人所属城市
|
||||
*/
|
||||
public function getEntryCity()
|
||||
{
|
||||
$params = [
|
||||
'invite_code' => $this->request->get('invite_code', ''),
|
||||
'user_id' => $this->request->get('user_id/d', 0),
|
||||
];
|
||||
$data = CityLogic::getEntryCity($params);
|
||||
return JsonServer::success('获取成功', $data);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user