Quellcode durchsuchen

二维码地址修改

WH01243 vor 2 Jahren
Ursprung
Commit
7ba83917f4

+ 1 - 1
jyBXSubscribe/rpc/internal/logic/userinfologic.go

@@ -67,7 +67,7 @@ func (l *UserInfoLogic) UserInfo(in *bxsubscribe.GetUserInfoReq) (*bxsubscribe.G
 		Data: &bxsubscribe.GetUserInfo{
 			Mail:   s_email,
 			ShowWx: ShowWx,
-			ImgUrl: fmt.Sprintf("/jyapp/getERCode/Bind_%v", in.BaseUserId), //二维码地址
+			ImgUrl: fmt.Sprintf("/publicapply/getERCode/Bind_%v", in.BaseUserId), //二维码地址
 		},
 	}, nil
 }

+ 5 - 4
jyBXSubscribe/rpc/model/service/pushSet.go

@@ -111,20 +111,20 @@ func pushSetMontage(in interface{}, name string, powerData *pb.CheckResp) (bool,
 	case "o_subset":
 		if data == nil || len(*data) == 0 {
 			returnData = &bxsubscribe.PushSet{
-				ATimes:    a_times,
+				ATimes:    []string{"09:00"},
 				IApppush:  1,
 				IWxpush:   1,
 				IMailpush: 0,
-				IRatemode: 5,
+				IRatemode: 2,
 				IsWxShow:  1,
 			}
 		} else {
 			returnData = &bxsubscribe.PushSet{
-				ATimes:    a_times,
+				ATimes:    common.If((*data)["i_ratemode"] == nil, []string{"09:00"}, a_times).([]string),
 				IApppush:  common.Int64All(common.If((*data)["i_apppush"] == nil, 1, (*data)["i_apppush"])),
 				IWxpush:   common.Int64All(common.If((*data)["i_wxpush"] == nil, 1, (*data)["i_wxpush"])),
 				IMailpush: common.Int64All(common.If((*data)["i_mailpush"] == nil, 0, (*data)["i_mailpush"])),
-				IRatemode: common.Int64All(common.If((*data)["i_ratemode"] == nil, 5, (*data)["i_ratemode"])),
+				IRatemode: common.Int64All(common.If((*data)["i_ratemode"] == nil, 2, (*data)["i_ratemode"])),
 				IsWxShow:  1,
 			}
 		}
@@ -232,6 +232,7 @@ func (this *PushSetService) SetUser(mail string) (bool, string) {
 		update = IC.Mgo.Update(util.ENTUSER, map[string]interface{}{"i_entid": this.EntId, "i_userid": this.EntUserId}, map[string]interface{}{
 			"$set": set,
 		}, true, false)
+		IC.MainMysql.UpdateOrDeleteBySql(`update entniche_user set mail=? where id=? and ent_id=?`, mail, this.EntUserId, this.EntId)
 	}
 	return update, ""
 }