|
|
|
@ -19,6 +19,7 @@ use app\common\repositories\store\shipping\ExpressRepository; |
|
|
|
|
use think\exception\ValidateException; |
|
|
|
|
use think\facade\Cache; |
|
|
|
|
use think\facade\Config; |
|
|
|
|
use think\facade\Log; |
|
|
|
|
|
|
|
|
|
class ExpressService |
|
|
|
|
{ |
|
|
|
@ -111,12 +112,15 @@ class ExpressService |
|
|
|
|
if ($is_shunfeng == 'SF') { |
|
|
|
|
$suffix = ':'.substr($phone,7); |
|
|
|
|
} |
|
|
|
|
Log::info('EEEEEE'); |
|
|
|
|
$com = app()->make(ExpressRepository::class)->getSearch(['name' => $name])->value('code'); |
|
|
|
|
Log::info('ffff'); |
|
|
|
|
$result = self::query($sn.$suffix, $com, ['phone' => $phone]); |
|
|
|
|
if(!empty($result['list'])){ |
|
|
|
|
Cache::set('express_' . $sn, $result['list'], $result['cacheTime']); |
|
|
|
|
$result = $result['list']; |
|
|
|
|
} |
|
|
|
|
Log::info('gggg'); |
|
|
|
|
} |
|
|
|
|
return $result ?? []; |
|
|
|
|
} |
|
|
|
|