|
@@ -87,7 +87,11 @@ class AuctionProc {
|
|
|
my_Assert(ctx()->baseInfo->cash >= $buyoutPrice, ErrCode::notenough_cash_msg);
|
|
|
//扣除钻石--交易费用 + 手续费
|
|
|
ctx()->base()->Consume_Cash($buyoutPrice);
|
|
|
- //ctx()->baseInfo->cash -= $buyoutPrice;
|
|
|
+ $sList = explode(',', $aucItem->contents);
|
|
|
+ if($aucItem->currpeopleid != null){//竞拍玩家邮件返回钻石
|
|
|
+ EmailProc::SendAuctionItemsBidCashFallback(req()->zoneid, req()->uid, $sList[0], 2, $buyoutPrice);
|
|
|
+ }
|
|
|
+
|
|
|
//更新表里的交易状态
|
|
|
$aucItem->result = "完成";
|
|
|
$aucItem->currpeopleid = req()->uid;
|
|
@@ -97,12 +101,11 @@ class AuctionProc {
|
|
|
//更新拍品缓存
|
|
|
|
|
|
$obj = self::updateAuctionUserItemListCache();
|
|
|
-//发送邮件,给拍品
|
|
|
- $sList = explode(',', $aucItem->contents);
|
|
|
+//发送邮件,给拍品
|
|
|
EmailProc::SendAuctionItemsMail(req()->zoneid, req()->uid, $sList[0], $sList[1]);
|
|
|
|
|
|
EmailProc::SendAuctionCashMail(req()->zoneid, $aucItem->sellerid, $sList[0], 2, $buyoutPrice - intval($buyoutPrice * 0.05)); //上架玩家给钻石邮件
|
|
|
-
|
|
|
+
|
|
|
UserProc::updateUserInfo(); # 回写玩家数据
|
|
|
return Resp::ok(array(
|
|
|
"auction" => $obj->data,
|