Commit 7b700b17 authored by wwccw0591's avatar wwccw0591

pc

parent 752838d0
...@@ -162,6 +162,8 @@ class ApiConst ...@@ -162,6 +162,8 @@ class ApiConst
//平台介入 //平台介入
const platIn = 1; const platIn = 1;
const platNotIn = 0; const platNotIn = 0;
//平台介入中
const platProccess=2;
//平台审核状态 //平台审核状态
const refundPlatformVerify = 0; const refundPlatformVerify = 0;
const refundPlatformAgree = 1; const refundPlatformAgree = 1;
......
...@@ -787,14 +787,13 @@ class OrderModel extends \DAO\AbstractModel ...@@ -787,14 +787,13 @@ class OrderModel extends \DAO\AbstractModel
} }
//删除订单缓存 //删除订单缓存
public function deleteOrderCache($memberId, $orderId = false, $stroeId = false, $deleteGetShopKeeperCountByStoreId = false, $deleteGetFavoritesCountByStoreId = false,$diliverymanId=0) public function deleteOrderCache($memberId, $orderId = false, $stroeId = false, $deleteGetShopKeeperCountByStoreId = false, $deleteGetFavoritesCountByStoreId = false,$diliverymanId=ApiConst::zero)
{ {
if (!empty($memberId)) { if (!empty($memberId)) {
$this->deleteGetListByMemberId($memberId); $this->deleteGetListByMemberId($memberId);
\DAO\MemberModel::getInstance()->deleteTotalCache($memberId); \DAO\MemberModel::getInstance()->deleteTotalCache($memberId);
} }
if (!empty($stroeId)) { if (!empty($stroeId)) {
if ($deleteGetShopKeeperCountByStoreId) { if ($deleteGetShopKeeperCountByStoreId) {
$this->deleteGetShopKeeperCountByStoreId($stroeId); $this->deleteGetShopKeeperCountByStoreId($stroeId);
...@@ -885,7 +884,7 @@ class OrderModel extends \DAO\AbstractModel ...@@ -885,7 +884,7 @@ class OrderModel extends \DAO\AbstractModel
$limit = TIMESTAMP - $timeLimit; $limit = TIMESTAMP - $timeLimit;
$where[$timeField] = array('lt', $limit); $where[$timeField] = array('lt', $limit);
$where = $this->db->getSqlWhereByArray($where); $where = $this->db->getSqlWhereByArray($where);
return $this->db->update($this->_tableName)->where($where)->rows(array('order_state' => $toState))->execute(); return $this->db->update($this->_tableName)->where($where)->rows(array('order_state' => $toState,'gmt_update'=>$toState))->execute();
} }
......
...@@ -100,6 +100,7 @@ class RefundReturnModel extends \DAO\AbstractModel { ...@@ -100,6 +100,7 @@ class RefundReturnModel extends \DAO\AbstractModel {
$where['refund_id'] = $refundId; $where['refund_id'] = $refundId;
$where['buyer_id'] = $buyerId; $where['buyer_id'] = $buyerId;
$data['is_platform_in']=ApiConst::platIn; $data['is_platform_in']=ApiConst::platIn;
$data['refund_state']=ApiConst::platProccess;
$data['platform_in_reason']=$applyMessage; $data['platform_in_reason']=$applyMessage;
return $this->update($where, $data); return $this->update($where, $data);
} }
......
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