|
|
@@ -205,9 +205,9 @@ class GoodsService extends BaseService
|
|
|
|
|
|
}
|
|
|
|
|
|
- public function getFreight($userId, $addressId)
|
|
|
+ public function getFreight($userId, $addressId,$skuList)
|
|
|
{
|
|
|
- $cacheKey = "caches:goods:freight:{$userId}_{$addressId}";
|
|
|
+ $cacheKey = "caches:goods:freight:{$userId}_{$addressId}_".md5(json_encode($skuList,256));
|
|
|
$data = RedisService::get($cacheKey);
|
|
|
if($data){
|
|
|
return $data;
|
|
|
@@ -218,7 +218,7 @@ class GoodsService extends BaseService
|
|
|
$addressId = isset($address['district_code'])? $address['district_code'] : '';
|
|
|
}
|
|
|
|
|
|
- $result = SupplyService::make()->getApiData('getFreight',['address_id'=> $addressId]);
|
|
|
+ $result = SupplyService::make()->getApiData('getFreight',['address_id'=> intval($addressId),'sku_list'=> $skuList]);
|
|
|
var_dump($result);
|
|
|
}
|
|
|
|