|
@@ -230,7 +230,7 @@ class member_bonusControl extends mbMemberControl
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- private function share_info(\bonus\type $type,&$title,&$sub_title,&$img_url)
|
|
|
+ private function share_info(bonus\type $type,&$title,&$sub_title,&$img_url)
|
|
|
{
|
|
|
$share = bonus_helper::get_share($type->share_id());
|
|
|
$title = $type->bless();
|
|
@@ -570,7 +570,7 @@ class member_bonusControl extends mbMemberControl
|
|
|
$type_infos = [];
|
|
|
foreach($items as $val)
|
|
|
{
|
|
|
- $type = \bonus\type::create_by_paramer($val);
|
|
|
+ $type = bonus\type::create_by_paramer($val);
|
|
|
|
|
|
$item["type_sn"] = $type->getType_sn();
|
|
|
$item["type_bless"] = $type->bless();
|
|
@@ -680,8 +680,8 @@ class member_bonusControl extends mbMemberControl
|
|
|
$result = [];
|
|
|
foreach ($items as $item)
|
|
|
{
|
|
|
- $bonus = \bonus\user_bonus::create_by_param($item);
|
|
|
- $type = \bonus\type::create_by_sn($bonus->type_sn());
|
|
|
+ $bonus = bonus\user_bonus::create_by_param($item);
|
|
|
+ $type = bonus\type::create_by_sn($bonus->type_sn());
|
|
|
$user_id = $type->sender_id();
|
|
|
$member = new member_info($user_id);
|
|
|
$avatar = $member->avatar();
|
|
@@ -768,10 +768,10 @@ class member_bonusControl extends mbMemberControl
|
|
|
$type_sn = '';
|
|
|
foreach ($items as $item)
|
|
|
{
|
|
|
- $bonus = \bonus\user_bonus::create_by_param($item);
|
|
|
+ $bonus = bonus\user_bonus::create_by_param($item);
|
|
|
$rate = $bonus->bonus_rate();
|
|
|
if ($max_rate < $rate) {
|
|
|
- $type = \bonus\type::create_by_sn($bonus->type_sn());
|
|
|
+ $type = bonus\type::create_by_sn($bonus->type_sn());
|
|
|
$user_id = $type->sender_id();
|
|
|
$member = new member_info($user_id);
|
|
|
$avatar = $member->avatar();
|