feat(UserSignLogic): 修改核销商品获得逻辑并更新文档
This commit is contained in:
parent
63e86b21d7
commit
23bf1ecee8
@ -26,7 +26,7 @@ class UserSignLogic extends BaseLogic
|
|||||||
//首充
|
//首充
|
||||||
$write = self::write($order, $total_vip, 0, 1, 9);
|
$write = self::write($order, $total_vip, 0, 1, 9);
|
||||||
self::write_log($write, $total_vip, 0, 7);
|
self::write_log($write, $total_vip, 0, 7);
|
||||||
self::write_log($write, $total_vip, 0, 9);
|
self::write_log($write, $total_vip, 0, 9,0);
|
||||||
User::where('id', $order->uid)->inc('integral', $total_vip)->update();
|
User::where('id', $order->uid)->inc('integral', $total_vip)->update();
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
@ -50,7 +50,7 @@ class UserSignLogic extends BaseLogic
|
|||||||
if ($order['pay_price'] >= 500) {
|
if ($order['pay_price'] >= 500) {
|
||||||
$write = self::write($order, $total_vip, 1, 1, 4);
|
$write = self::write($order, $total_vip, 1, 1, 4);
|
||||||
self::write_log($write, $total_vip, 1, 1);
|
self::write_log($write, $total_vip, 1, 1);
|
||||||
self::write_log($write, $total_vip, 1, 4);
|
self::write_log($write, $total_vip, 1, 2,0);
|
||||||
User::where('id', $order->uid)->inc('integral', $total_vip)->update();
|
User::where('id', $order->uid)->inc('integral', $total_vip)->update();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -66,8 +66,8 @@ class UserSignLogic extends BaseLogic
|
|||||||
$find->status = 1;
|
$find->status = 1;
|
||||||
$find->save();
|
$find->save();
|
||||||
User::where('id', $order->uid)->inc('integral', $find['number'])->update();
|
User::where('id', $order->uid)->inc('integral', $find['number'])->update();
|
||||||
self::write_log($find, $find['number'], 1, 2);
|
self::write_log($find, $find['number'], 1, 2,0);
|
||||||
self::write_log($find, $find['number'], 1, 4);
|
// self::write_log($find, $find['number'], 1, 4);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
@ -90,12 +90,12 @@ class UserSignLogic extends BaseLogic
|
|||||||
* @param type 1:购买商品冻结
|
* @param type 1:购买商品冻结
|
||||||
* @param type 2:核销商品解冻
|
* @param type 2:核销商品解冻
|
||||||
* @param type 3:退款扣除冻结
|
* @param type 3:退款扣除冻结
|
||||||
* @param type 4:核销金额获得
|
* @param type 4:核销商品获得
|
||||||
* @param type 5:兑换商品扣除
|
* @param type 5:兑换商品扣除
|
||||||
* @param type 6:退款扣除礼品
|
* @param type 6:退款扣除礼品
|
||||||
* @param type 7:充值冻结
|
* @param type 7:充值冻结
|
||||||
* @param type 8:收银台支付增加
|
* @param type 8:收银台支付增加
|
||||||
* @param type 9:首充获得
|
* @param type 9:充值解冻
|
||||||
*/
|
*/
|
||||||
public static function write($order, $total_vip, $order_type = 0, $status = 0, $type = 4, $pm = 1)
|
public static function write($order, $total_vip, $order_type = 0, $status = 0, $type = 4, $pm = 1)
|
||||||
{
|
{
|
||||||
@ -118,12 +118,12 @@ class UserSignLogic extends BaseLogic
|
|||||||
* @param type 1:购买商品冻结
|
* @param type 1:购买商品冻结
|
||||||
* @param type 2:核销商品解冻
|
* @param type 2:核销商品解冻
|
||||||
* @param type 3:退款扣除冻结
|
* @param type 3:退款扣除冻结
|
||||||
* @param type 4:核销金额获得
|
* @param type 4:核销商品获得
|
||||||
* @param type 5:兑换商品扣除
|
* @param type 5:兑换商品扣除
|
||||||
* @param type 6:退款扣除礼品
|
* @param type 6:退款扣除礼品
|
||||||
* @param type 7:充值冻结
|
* @param type 7:充值冻结
|
||||||
* @param type 8:收银台支付增加
|
* @param type 8:收银台支付增加
|
||||||
* @param type 9:首充获得
|
* @param type 9:充值解冻
|
||||||
*/
|
*/
|
||||||
public static function write_log($write, $total_vip, $order_type = 0, $type = 4, $pm = 1)
|
public static function write_log($write, $total_vip, $order_type = 0, $type = 4, $pm = 1)
|
||||||
{
|
{
|
||||||
@ -159,7 +159,7 @@ class UserSignLogic extends BaseLogic
|
|||||||
/**礼品券**/
|
/**礼品券**/
|
||||||
//收入
|
//收入
|
||||||
case 4:
|
case 4:
|
||||||
return "核销金额{$amount}元获得{$number}元礼品券";
|
return "核销商品{$amount}元获得{$number}元礼品券";
|
||||||
//支出
|
//支出
|
||||||
case 5:
|
case 5:
|
||||||
return "兑换{$amount}元商品扣除{$number}元礼品券";
|
return "兑换{$amount}元商品扣除{$number}元礼品券";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user