|
@@ -177,7 +177,6 @@ class account_helper
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
public static function invite_bonus($relay_id)
|
|
|
{
|
|
|
$last_type = bonus_helper::last_invite_type($relay_id);
|
|
@@ -436,8 +435,13 @@ class account_helper
|
|
|
$param['type_name'] = "新人红包";
|
|
|
|
|
|
$ret = bonus_helper::make_bonus($param,array($rate));
|
|
|
- if($ret != false) {
|
|
|
- bonus_helper::send($ret['type_sn'],array($member_id));
|
|
|
+ if($ret != false)
|
|
|
+ {
|
|
|
+ $bonus_param = bonus_helper::send($ret['type_sn'],array($member_id));
|
|
|
+ if($bonus_param != false) {
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
$total += $amount;
|
|
|
}
|
|
|
}
|
|
@@ -578,7 +582,6 @@ class account_helper
|
|
|
Model('member')->editMember(array('member_id' => $member_id), $update_info);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
public static function onLogin($member_id)
|
|
|
{
|
|
|
relation_helper::onLogin($member_id);
|
|
@@ -598,23 +601,28 @@ class account_helper
|
|
|
} else {
|
|
|
$member_id = $sender_id;
|
|
|
}
|
|
|
- if($member_id < 0) return false;
|
|
|
+ if($member_id < 0) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
|
|
|
if(self::guide_bonus($member_id,$money) != false) {
|
|
|
push_helper::evaluation_bonus($member_id,$money);
|
|
|
}
|
|
|
}
|
|
|
- //在发货之后,可以提醒用户留意收货,在订单中查看物流
|
|
|
- public static function onOrderSend($member_id)
|
|
|
- {
|
|
|
- Log::record("account_helper::onOrderSend {$member_id}",Log::DEBUG);
|
|
|
- }
|
|
|
+
|
|
|
//在支付成功之后,可以提醒用户收到货后,可以收到红包奖励。
|
|
|
public static function onPaySuccess($member_id)
|
|
|
{
|
|
|
Log::record("account_helper::onOrderSuccess {$member_id}",Log::DEBUG);
|
|
|
}
|
|
|
|
|
|
+ //在发货之后,可以提醒用户留意收货,在订单中查看物流
|
|
|
+ public static function onOrderSend($member_id)
|
|
|
+ {
|
|
|
+ Log::record("account_helper::onOrderSend {$member_id}",Log::DEBUG);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
public static function onOrderSuccess($pay_sn)
|
|
|
{
|
|
|
$data = &$result['data'];
|