|
|
|
@ -138,10 +138,7 @@ class UserAssetsLogRepository extends BaseRepository |
|
|
|
|
|
|
|
|
|
public function userRefundEvent($orderItem) |
|
|
|
|
{ |
|
|
|
|
// 更新该订单的所有数据为退款状态 |
|
|
|
|
$this->dao->updateOrderStatus($orderItem['order_id'], self::STATUS_REFUND); |
|
|
|
|
|
|
|
|
|
$item = $this->dao->getWhere(array('id' => $orderItem)); |
|
|
|
|
$item = $this->dao->getWhere(array('order_id' => $orderItem['order_id'])); |
|
|
|
|
if ($item) { |
|
|
|
|
$item->status = self::STATUS_REFUND; |
|
|
|
|
$item->save(); |
|
|
|
@ -150,7 +147,8 @@ class UserAssetsLogRepository extends BaseRepository |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public function userPayEvent($groupOrder){ |
|
|
|
|
public function userPayEvent($groupOrder) |
|
|
|
|
{ |
|
|
|
|
foreach ($groupOrder['orderList'] as $orderItem) { |
|
|
|
|
|
|
|
|
|
// 5. 本人使用的福利积分 |
|
|
|
@ -574,6 +572,9 @@ class UserAssetsLogRepository extends BaseRepository |
|
|
|
|
if ($item['count'] > 0) { |
|
|
|
|
$item['count'] = "+" . $item['count']; |
|
|
|
|
} |
|
|
|
|
if ($item['status'] == 5) { |
|
|
|
|
$item['type'] .= '(退款)'; |
|
|
|
|
} |
|
|
|
|
$user = $userRepository->get($item['uid']); |
|
|
|
|
if ($user) { |
|
|
|
|
$item['user_nickname'] = $user['nickname']; |
|
|
|
|