|
@@ -105,7 +105,7 @@ class account_helper
|
|
|
self::admin_param($param);
|
|
|
$param['make_type'] = \bonus\type::MakeShakeGainType;
|
|
|
$param['type_name'] = "从熊猫美妆摇来的红包";
|
|
|
- $ret = bonus_helper::make_bonusex($param,$rates);
|
|
|
+ $ret = bonus_helper::make_bonus($param,$rates);
|
|
|
if($ret != false) {
|
|
|
$type_sn = $ret['type_sn'];
|
|
|
self::$stSysBonus->reset($type_sn);
|
|
@@ -161,7 +161,7 @@ class account_helper
|
|
|
$param['type_name'] = "从{$name}摇来的红包";
|
|
|
|
|
|
$rate_moneys = self::make_rate($amount,1,$rate);
|
|
|
- $ret = bonus_helper::make_bonusex($param,$rate_moneys);
|
|
|
+ $ret = bonus_helper::make_bonus($param,$rate_moneys);
|
|
|
if($ret != false)
|
|
|
{
|
|
|
$to_minfo = new member_info($to_id);
|
|
@@ -199,7 +199,7 @@ class account_helper
|
|
|
$param['type_name'] = "{$name}摇飞的红包";
|
|
|
|
|
|
$rate_moneys = self::make_rate($amount,1,$rate);
|
|
|
- $ret = bonus_helper::make_bonusex($param,$rate_moneys);
|
|
|
+ $ret = bonus_helper::make_bonus($param,$rate_moneys);
|
|
|
if($ret != false)
|
|
|
{
|
|
|
$to_info = new member_info($to_id);
|
|
@@ -216,19 +216,19 @@ class account_helper
|
|
|
|
|
|
private static function pay_refund($member_id,$amount,$bonus_name)
|
|
|
{
|
|
|
- $param = self::base_param($amount,1);
|
|
|
- self::admin_param($param);
|
|
|
- $param['make_type'] = \bonus\type::MakePayRefundType;
|
|
|
- $param['type_name'] = $bonus_name;
|
|
|
-
|
|
|
- $ret = bonus_helper::make_bonus($param);
|
|
|
- if($ret != false)
|
|
|
- {
|
|
|
- bonus_helper::send($ret['type_sn'],array($member_id));
|
|
|
- push_helper::order_refund_bonus($member_id,$amount);
|
|
|
- } else {
|
|
|
- Log::record("给用户 {$member_id} 退款{$amount}失败.");
|
|
|
- }
|
|
|
+// $param = self::base_param($amount,1);
|
|
|
+// self::admin_param($param);
|
|
|
+// $param['make_type'] = \bonus\type::MakePayRefundType;
|
|
|
+// $param['type_name'] = $bonus_name;
|
|
|
+//
|
|
|
+// $ret = bonus_helper::make_bonus($param);
|
|
|
+// if($ret != false)
|
|
|
+// {
|
|
|
+// bonus_helper::send($ret['type_sn'],array($member_id));
|
|
|
+// push_helper::order_refund_bonus($member_id,$amount);
|
|
|
+// } else {
|
|
|
+// Log::record("给用户 {$member_id} 退款{$amount}失败.");
|
|
|
+// }
|
|
|
}
|
|
|
|
|
|
private static function pay_bonus($order_sn,$member_id)
|
|
@@ -269,7 +269,7 @@ class account_helper
|
|
|
$param['make_type'] = \bonus\type::MakeOrderCancelType;
|
|
|
$param['type_name'] = '订单退款';
|
|
|
$rate_moneys = self::make_rate($amount,1,$rate);
|
|
|
- $ret = bonus_helper::make_bonusex($param,$rate_moneys);
|
|
|
+ $ret = bonus_helper::make_bonus($param,$rate_moneys);
|
|
|
|
|
|
if($ret != false) {
|
|
|
bonus_helper::send($ret['type_sn'],array($member_id));
|
|
@@ -294,7 +294,7 @@ class account_helper
|
|
|
$param['type_name'] = "发送红包过期退款";
|
|
|
|
|
|
$rate_moneys = self::make_rate($amount,1,$rate);
|
|
|
- $ret = bonus_helper::make_bonusex($param,$rate_moneys);
|
|
|
+ $ret = bonus_helper::make_bonus($param,$rate_moneys);
|
|
|
if($ret != false)
|
|
|
{
|
|
|
$bonus = bonus_helper::send($ret['type_sn'],array($member_id));
|
|
@@ -335,7 +335,7 @@ class account_helper
|
|
|
$param['make_type'] = \bonus\type::MakeRegister;
|
|
|
$param['type_name'] = "新人红包";
|
|
|
|
|
|
- $ret = bonus_helper::make_bonusex($param,array($rate));
|
|
|
+ $ret = bonus_helper::make_bonus($param,array($rate));
|
|
|
if($ret != false) {
|
|
|
bonus_helper::send($ret['type_sn'],array($member_id));
|
|
|
$total += $amount;
|
|
@@ -389,7 +389,7 @@ class account_helper
|
|
|
$param['make_type'] = bonus\type::MakePayType;
|
|
|
$param['type_name'] = "支付奖励红包";
|
|
|
|
|
|
- $ret = bonus_helper::make_bonusex($param,array($rate_money));
|
|
|
+ $ret = bonus_helper::make_bonus($param,array($rate_money));
|
|
|
if($ret != false) {
|
|
|
$type_sn = $ret['type_sn'];
|
|
|
$bonus = bonus_helper::send($type_sn,array($buyer_id));
|