ソースを参照

add base config funciton

abiao 5 年 前
コミット
974ab625dc
共有1 個のファイルを変更した3 個の追加3 個の削除を含む
  1. 3 3
      go/gopath/src/fohow.com/apps/controllers/railsadmin_controller/update_shop_application.go

+ 3 - 3
go/gopath/src/fohow.com/apps/controllers/railsadmin_controller/update_shop_application.go

@@ -60,9 +60,9 @@ func ApplySuccessInviterBenefit(wxUser *user_model.WxUser, shopId int64, source
 	}
 	//本人充值16800--发放4200代金券
 	rId := fmt.Sprintf("shop-apply-%d", shopId)
-	c := base_config.GetSendCash()
-	if shopApply.Total == base_config.GetUserApply() {
-		c = int64(0)
+	c := base_config.GetUserCash()
+	if shopApply.Total == base_config.GetAgentApply() {
+		c = base_config.GetAgentCash()
 	}
 	benefitWxUser := GetInviter(wxUser)
 	if benefitWxUser == nil || benefitWxUser.Id == int64(1) {