Commit 7a5d571e by 冷斌

update

parent 64c0bfe0
...@@ -721,8 +721,12 @@ class Model_Live extends PhalApi_Model_NotORM { ...@@ -721,8 +721,12 @@ class Model_Live extends PhalApi_Model_NotORM {
$send_gift2 = !empty($set['send_gift2']) ? $set['send_gift2'] : 0; $send_gift2 = !empty($set['send_gift2']) ? $set['send_gift2'] : 0;
$total2 = $total; $total2 = $total;
if ($send_gift > 0) { if ($send_gift > 0) {
var_dump($total2);
$send_gift3 = (int)($total / $send_gift); $send_gift3 = (int)($total / $send_gift);
$total2 += ($send_gift3 * $send_gift2); $total2 += ($send_gift3 * $send_gift2);
var_dump($send_gift, $send_gift2, $send_gift3, $total2);
die;
} }
/* 更新用户余额 消费 */ /* 更新用户余额 消费 */
......
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