Base.php 683 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * @copyright Copyright (c) 2017 https://www.sapixx.com All rights reserved.
  4. * @license Licensed (http://www.apache.org/licenses/LICENSE-2.0).
  5. * @author pillar<ltmn@qq.com>
  6. * 小程序公共API服务
  7. */
  8. namespace app\allwin\controller\api;
  9. use app\common\controller\Api;
  10. use think\facade\Request;
  11. class Base extends Api{
  12. protected $city_id;
  13. protected $header;
  14. protected $lng; //经度
  15. protected $lat; //纬度
  16. protected $qqgps;
  17. /**
  18. * 初始化API并读取城市或你的经纬度,把QQ经纬度转换成百度经纬度
  19. * @return void
  20. */
  21. public function initialize() {
  22. parent::initialize();
  23. }
  24. }