Commit 739b2696 authored by christ's avatar christ

调整退款退货收货时间缓存删除

parent d0feae83
......@@ -87,6 +87,7 @@ class RefundServiceModel extends \Business\AbstractModel
ErrorModel::throwException(CodeConfigModel::commonError);
}
$refundReturnDao = \DAO\Order\RefundReturnModel::getInstance(DbNameConst::masterDBConnectName);
$storeDao=\DAO\StoreModel::getInstance(DbNameConst::masterDBConnectName);
$whereRefund = array();
$whereRefund['store_id']= $storeId;
$whereRefund['refund_id']= $refundId;
......@@ -96,6 +97,7 @@ class RefundServiceModel extends \Business\AbstractModel
ErrorModel::throwException(CodeConfigModel::notExistRefund);
}
$state = $refundReturnDao->update(array('refund_id'=> $refundId), array('receive_time'=> $receiveTime));
$storeDao->deleteStoreRefundCache($storeId);
if(!$state){
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment