|
@@ -24,14 +24,14 @@ class account_helper
|
|
|
|
|
|
public static function invite_bonus($relay_id)
|
|
|
{
|
|
|
- $last_type = bonus_helper::last_invite_type($relay_id);
|
|
|
- if(is_null($last_type) == false)
|
|
|
- {
|
|
|
- $type = bonus_helper::create_by_paramer($last_type);
|
|
|
- if($type->binded_over() == false && $type->isEnd() == false) {
|
|
|
- return $type->getType_sn();
|
|
|
- }
|
|
|
- }
|
|
|
+// $last_type = bonus_helper::last_invite_type($relay_id);
|
|
|
+// if(is_null($last_type) == false)
|
|
|
+// {
|
|
|
+// $type = bonus_helper::create_by_paramer($last_type);
|
|
|
+// if($type->binded_over() == false && $type->isEnd() == false) {
|
|
|
+// return $type->getType_sn();
|
|
|
+// }
|
|
|
+// }
|
|
|
|
|
|
$param = bonus\parameters::invite($relay_id);
|
|
|
$ret = bonus_helper::make_bonus($param,$param['rate_money']);
|