|
@@ -6,6 +6,9 @@
|
|
|
* Time: 下午12:26
|
|
|
*/
|
|
|
|
|
|
+require_once (BASE_ROOT_PATH . '/helper/sms_helper.php');
|
|
|
+
|
|
|
+
|
|
|
class push_helper
|
|
|
{
|
|
|
static $admin_info = null;
|
|
@@ -141,7 +144,7 @@ class push_helper
|
|
|
}
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
- public static function register_bonus($user, $money,$type_sn)
|
|
|
+ public static function register_bonus($user, $money,$type_sn,$fQueue=false)
|
|
|
{
|
|
|
$text = "您获得{$money}元的新人首单红包,请查收~";
|
|
|
|
|
@@ -155,9 +158,8 @@ class push_helper
|
|
|
$push_param['extra']['show_type'] = 'pop';
|
|
|
$push_param['extra']['url'] = schema_helper::bonus_detail($type_sn);
|
|
|
$push_param['extra']['image'] = self::admin_avatar();
|
|
|
- self::push($inviter,$push_param,Sms::tpl_reg_inviter,['user_name' => $user_info->nickname(),'level','amount' => $money],$fQueue);
|
|
|
|
|
|
- QueueClient::push('upushSendMsg',$push_param);
|
|
|
+ self::push($user,$push_param,Sms::tpl_reg_user_bonus,['amount' => $money],$fQueue);
|
|
|
}
|
|
|
|
|
|
public static function money_rate_desc($money,$rate)
|