Test.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. namespace app\admin\controller;
  3. use app\admin\model\system\SystemCity;
  4. use crmeb\services\ExpressService;
  5. use crmeb\services\HttpService;
  6. use crmeb\services\JsonService;
  7. use crmeb\utils\Queue;
  8. use think\facade\Queue as QueueJob;
  9. class Test
  10. {
  11. public function index($page = 1, $limit = 50, $level = 0)
  12. {
  13. // var_dump(is_file('uploads/981_1_user.jpg'));
  14. $appCode = '4a5b910fc344434cacb2edd36e0e56aa';
  15. $list = ExpressService::query('75341495702624');
  16. dump($list);
  17. // $data = [];
  18. // foreach ($list['data'] as $item) {
  19. // $data[] = [
  20. // 'level' => $item['level'],
  21. // 'parent_id' => $item['parent_id'],
  22. // 'area_code' => $item['area_code'],
  23. // 'name' => $item['name'],
  24. // 'merger_name' => $item['merger_name'],
  25. // 'lng' => $item['lng'],
  26. // 'lat' => $item['lat'],
  27. // 'city_id' => $item['id'],
  28. // ];
  29. // }
  30. // $res = SystemCity::insertAll($data);
  31. // return JsonService::successful(['count' => $res]);
  32. }
  33. }