|
@@ -84,19 +84,19 @@ class bargain
|
|
|
|
|
|
private function send_bonus($discount,$userid)
|
|
|
{
|
|
|
- $params = bonus\parameters::user_reigster_fixed();
|
|
|
- foreach ($params as $param) {
|
|
|
- $type = bonus_helper::create_type_input($param);
|
|
|
- $money = $type->getTotal_amount();
|
|
|
- $ret = bonus_helper::make_bonus($param, $param['rate_money']);
|
|
|
-
|
|
|
- if ($ret != false) {
|
|
|
- $type_sn = $ret['type_sn'];
|
|
|
- bonus_helper::send($type_sn, [$this->cur_user]);
|
|
|
- push_helper::register_bonus($this->cur_user, $money, $type_sn);
|
|
|
- } else {
|
|
|
- return false;
|
|
|
- }
|
|
|
- }
|
|
|
+// $params = bonus\parameters::user_reigster_fixed();
|
|
|
+// foreach ($params as $param) {
|
|
|
+// $type = bonus_helper::create_type_input($param);
|
|
|
+// $money = $type->getTotal_amount();
|
|
|
+// $ret = bonus_helper::make_bonus($param, $param['rate_money']);
|
|
|
+//
|
|
|
+// if ($ret != false) {
|
|
|
+// $type_sn = $ret['type_sn'];
|
|
|
+// bonus_helper::send($type_sn, [$this->cur_user]);
|
|
|
+// push_helper::register_bonus($this->cur_user, $money, $type_sn);
|
|
|
+// } else {
|
|
|
+// return false;
|
|
|
+// }
|
|
|
+// }
|
|
|
}
|
|
|
}
|