|
|
@@ -3,6 +3,7 @@ package railsadmin_controller
|
|
|
import (
|
|
|
"fmt"
|
|
|
"fohow.com/apps"
|
|
|
+ "fohow.com/apps/helpers"
|
|
|
"fohow.com/apps/models/balance_model"
|
|
|
"fohow.com/apps/models/base_config"
|
|
|
"fohow.com/apps/models/user_model"
|
|
|
@@ -44,7 +45,8 @@ func (self *RailsadminController) UpdateShopApplication() {
|
|
|
//更改下级会员群主ID
|
|
|
inviteList := user_model.GetWxUsersByInviteIdAll(wxUser.Id, false)
|
|
|
go user_model.UpdateClass(inviteList, wxUser.Id, wxUser.IntroUserId)
|
|
|
-
|
|
|
+ //发放赠品
|
|
|
+ helpers.ShopOrderPromotion(shopApplication.Id, wxUser.Id, wxUser.Depart)
|
|
|
//消除user,wxuser缓存
|
|
|
userKey := fmt.Sprintf("user.GetByUid[%d]", wxUser.UserId)
|
|
|
wxUserKey := cache.GetKey(cache.GetWxUserById, wxUser.Id)
|