stanley-king 7 лет назад
Родитель
Сommit
07731a6b37
3 измененных файлов с 4 добавлено и 3 удалено
  1. 1 1
      helper/async/bargain.php
  2. 2 2
      helper/push_helper.php
  3. 1 0
      helper/room/bargain_manager.php

+ 1 - 1
helper/async/bargain.php

@@ -96,7 +96,7 @@ class bargain
             if ($ret != false) {
                 $type_sn = $ret['type_sn'];
                 bonus_helper::send($type_sn, [$userid]);
-                push_helper::register_bonus($userid, $discount, $type_sn);
+                push_helper::bargain_bonus($userid, $discount, $type_sn);
             } else {
                 return false;
             }

+ 2 - 2
helper/push_helper.php

@@ -914,11 +914,11 @@ class push_helper
         $text = "您获得{$money}元的砍价红包,请查收~";
 
         $push_param['alias'] = $user;
-        $push_param['title'] = "收到新人首单红包";
+        $push_param['title'] = "收到砍价红包";
         $push_param['text']  = $text;
 
         $push_param['extra']['go_type']   = 'bonus';
-        $push_param['extra']['title']    = "收到新人首单红包";
+        $push_param['extra']['title']    = "收到砍价红包";
         $push_param['extra']['text']     = $text;
         $push_param['extra']['show_type'] = 'pop';
         $push_param['extra']['url']      = schema_helper::bonus_detail($type_sn);

+ 1 - 0
helper/room/bargain_manager.php

@@ -175,6 +175,7 @@ class bargain_manager
     {
         $state = self::unknown_state;
         $value = $this->bargained($userid);
+
         if($value != false) {
             return ['value' => $value,'success' => false,'discount' => $this->mParams->discount(),'user_num' => $this->mParams->user_num()];
         }