yujian
2020-05-11 712fb305d6f79961e879a2f543107e19d7f9e8a2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
package com.yeshi.fanli.util.factory.msg;
 
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
 
import com.google.gson.Gson;
import com.yeshi.fanli.entity.bus.msg.MsgAccountDetail;
import com.yeshi.fanli.entity.bus.msg.MsgAccountDetail.MsgTypeAccountTypeEnum;
import com.yeshi.fanli.entity.bus.user.UserInfo;
import com.yeshi.fanli.util.StringUtil;
import com.yeshi.fanli.vo.msg.ClientTextStyleVO;
import com.yeshi.fanli.vo.msg.CommonMsgItemVO;
import com.yeshi.fanli.vo.msg.CommonMsgItemVOFactory;
 
public class MsgAccountDetailFactory {
    public final static int TYPE_WX = 1;// 微信
    public final static int TYPE_TB = 2;// 淘宝
    public final static int TYPE_PHONE = 3;// 电话
 
    public final static int WAY_BIND = 1;// 绑定
    public final static int WAY_CHANGE = 2;// 更换
    public final static int WAY_UNBIND = 3;// 解绑
 
    /**
     * 账号绑定成功
     * 
     * @param uid
     * @param type
     * @return
     */
    public static MsgAccountDetail createBindSuccess(Long uid, int type, int changeWay) {
        if (uid == null)
            return null;
 
        String info = "";
        String typeName = "";
        if (type == TYPE_PHONE) {
            info = "手机号码";
            typeName = "手机号";
        } else if (type == TYPE_TB) {
            info = "淘宝账号";
            typeName = "淘宝账号";
        } else if (type == TYPE_WX) {
            info = "微信账号";
            typeName = "微信号";
        }
 
        String way = "";
        if (changeWay == WAY_BIND) {
            way = "绑定成功";
        } else if (changeWay == WAY_CHANGE) {
            way = "更换成功";
        } else if (changeWay == WAY_UNBIND) {
            way = "解绑成功";
        }
 
        String beizu = "无";
        if (type == TYPE_TB && changeWay == WAY_CHANGE) {
            beizu = "淘宝账号更换绑定后,请务必要用更换后的淘宝账号领券下单";
        }
 
        List<CommonMsgItemVO> listMsg = new ArrayList<>();
        listMsg.add(CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("绑定详情", ClientTextStyleVO.COLOR_TITLE),
                new ClientTextStyleVO("恭喜你!" + info + "-" + way, ClientTextStyleVO.COLOR_CONTENT)));
        listMsg.add(CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("绑定账号", ClientTextStyleVO.COLOR_TITLE),
                new ClientTextStyleVO(typeName, ClientTextStyleVO.COLOR_HIGHLIGHT_CONTENT)));
        listMsg.add(CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("备注", ClientTextStyleVO.COLOR_TITLE),
                new ClientTextStyleVO(beizu, ClientTextStyleVO.COLOR_CONTENT)));
 
        MsgAccountDetail detail = new MsgAccountDetail();
        detail.setTitle("绑定账号");
        detail.setType(MsgTypeAccountTypeEnum.bingding);
        detail.setUser(new UserInfo(uid));
        detail.setCreateTime(new Date());
        detail.setRead(false);
        detail.setExtraInfo(new Gson().toJson(listMsg));
        return detail;
    }
 
    /**
     * 账号绑定失败
     * 
     * @param uid
     * @param type
     * @return
     */
    public static MsgAccountDetail createBindFail(Long uid, int type, int changeWay, String reason) {
        if (uid == null)
            return null;
 
        String info = "";
        String typeName = "";
        if (type == TYPE_PHONE) {
            info = "手机号码";
            typeName = "手机号";
        } else if (type == TYPE_TB) {
            info = "淘宝账号";
            typeName = "淘宝账号";
        } else if (type == TYPE_WX) {
            info = "微信账号";
            typeName = "微信号";
        }
 
        String way = "";
        if (changeWay == WAY_BIND) {
            way = "绑定失败";
        } else if (changeWay == WAY_CHANGE) {
            way = "更换失败";
        } else if (changeWay == WAY_UNBIND) {
            way = "解绑失败";
        }
 
        List<CommonMsgItemVO> listMsg = new ArrayList<>();
        listMsg.add(CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("绑定详情", ClientTextStyleVO.COLOR_TITLE),
                new ClientTextStyleVO("很抱歉!" + info + "-" + way, ClientTextStyleVO.COLOR_CONTENT)));
        listMsg.add(CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("绑定账号", ClientTextStyleVO.COLOR_TITLE),
                new ClientTextStyleVO(typeName, ClientTextStyleVO.COLOR_CONTENT)));
        if (!StringUtil.isNullOrEmpty(reason)) {
            listMsg.add(
                    CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("失败原因", ClientTextStyleVO.COLOR_TITLE),
                            new ClientTextStyleVO(reason, ClientTextStyleVO.COLOR_HIGHLIGHT_CONTENT)));
        }
        listMsg.add(CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("备注", ClientTextStyleVO.COLOR_TITLE),
                new ClientTextStyleVO("无", ClientTextStyleVO.COLOR_CONTENT)));
 
        MsgAccountDetail detail = new MsgAccountDetail();
        detail.setTitle("绑定账号");
        detail.setType(MsgTypeAccountTypeEnum.bingding);
        detail.setUser(new UserInfo(uid));
        detail.setCreateTime(new Date());
        detail.setRead(false);
        detail.setExtraInfo(new Gson().toJson(listMsg));
        return detail;
    }
 
    /**
     * 邀请码修改
     * @param uid
     * @param oldCode
     * @param newCode
     * @return
     */
    public static MsgAccountDetail createChangeInviteCode(Long uid, String oldCode, String newCode) {
        if (uid == null || StringUtil.isNullOrEmpty(oldCode) || StringUtil.isNullOrEmpty(newCode))
            return null;
 
        List<CommonMsgItemVO> listMsg = new ArrayList<>();
        listMsg.add(CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("修改类别", ClientTextStyleVO.COLOR_TITLE),
                new ClientTextStyleVO("邀请码修改", ClientTextStyleVO.COLOR_CONTENT)));
 
        List<ClientTextStyleVO> contentList2 = new ArrayList<>();
        contentList2.add(new ClientTextStyleVO(String.format("你原邀请码:%s 已经成功修改为新邀请码:", oldCode),
                ClientTextStyleVO.COLOR_CONTENT));
        contentList2.add(new ClientTextStyleVO(newCode, ClientTextStyleVO.COLOR_HIGHLIGHT_CONTENT));
        listMsg.add(CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("修改详情", ClientTextStyleVO.COLOR_TITLE),
                contentList2));
 
        List<ClientTextStyleVO> contentList3 = new ArrayList<>();
        contentList3.add(new ClientTextStyleVO("原邀请码依然可以使用", ClientTextStyleVO.COLOR_HIGHLIGHT_CONTENT));
        contentList3.add(new ClientTextStyleVO(",每个账户ID仅能修改一次", ClientTextStyleVO.COLOR_CONTENT));
        listMsg.add(CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("重要提醒", ClientTextStyleVO.COLOR_TITLE),
                contentList3));
 
        listMsg.add(CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("备注", ClientTextStyleVO.COLOR_TITLE),
                new ClientTextStyleVO("无", ClientTextStyleVO.COLOR_CONTENT)));
 
        MsgAccountDetail detail = new MsgAccountDetail();
        detail.setTitle("绑定账号");
        detail.setType(MsgTypeAccountTypeEnum.changeCode);
        detail.setUser(new UserInfo(uid));
        detail.setCreateTime(new Date());
        detail.setRead(false);
        detail.setExtraInfo(new Gson().toJson(listMsg));
        return detail;
    }
 
    // artificial
 
    /**
     * 人工升级会员消息
     * @Title: artificialVipPreUpgradeSuccess
     * @Description: 
     * @param uid
     * @param originalName
     * @param upName
     * @param days
     * @return 
     * MsgAccountDetail 返回类型
     * @throws
     */
    public static MsgAccountDetail artificialVipUpgradeSuccess(Long uid, String originalName, String upName, int days) {
        if (uid == null || originalName == null || upName == null)
            return null;
 
        List<CommonMsgItemVO> listMsg = new ArrayList<>();
 
        List<ClientTextStyleVO> contentList2 = new ArrayList<>();
        contentList2.add(new ClientTextStyleVO("你的账户已由" + originalName + "升级为", ClientTextStyleVO.COLOR_CONTENT));
        contentList2.add(new ClientTextStyleVO(upName, ClientTextStyleVO.COLOR_HIGHLIGHT_CONTENT));
        listMsg.add(CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("成长详情", ClientTextStyleVO.COLOR_TITLE),
                contentList2));
 
        List<ClientTextStyleVO> contentList3 = new ArrayList<>();
        contentList3.add(new ClientTextStyleVO(days + "", ClientTextStyleVO.COLOR_HIGHLIGHT_CONTENT));
        contentList3.add(new ClientTextStyleVO("天", ClientTextStyleVO.COLOR_CONTENT));
        listMsg.add(CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("共耗时", ClientTextStyleVO.COLOR_TITLE),
                contentList3));
 
        listMsg.add(CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("对应权益", ClientTextStyleVO.COLOR_TITLE),
                new ClientTextStyleVO("从收到本消息起,你将获得该账户等级对应的全部权益", ClientTextStyleVO.COLOR_CONTENT)));
 
        listMsg.add(CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("备注", ClientTextStyleVO.COLOR_TITLE),
                new ClientTextStyleVO("无", ClientTextStyleVO.COLOR_CONTENT)));
 
        MsgAccountDetail detail = new MsgAccountDetail();
        detail.setTitle("等级成长");
        detail.setType(MsgTypeAccountTypeEnum.vipPgrade);
        detail.setUser(new UserInfo(uid));
        detail.setCreateTime(new Date());
        detail.setRead(false);
        detail.setExtraInfo(new Gson().toJson(listMsg));
        return detail;
    }
 
    /**
     * 人工升级会员消息失败
     * @Title: artificialVipUpgradeFail
     * @Description: 
     * @param uid
     * @param originalName
     * @param upName
     * @param reson
     * @return 
     * MsgAccountDetail 返回类型
     * @throws
     */
    public static MsgAccountDetail artificialVipUpgradeFail(Long uid, String originalName, String upName,
            String reson) {
        if (uid == null || originalName == null || upName == null)
            return null;
 
        List<CommonMsgItemVO> listMsg = new ArrayList<>();
 
        List<ClientTextStyleVO> contentList = new ArrayList<>();
        contentList.add(new ClientTextStyleVO("很抱歉!未通过人工审核 ", ClientTextStyleVO.COLOR_CONTENT));
 
        listMsg.add(CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("成长说明", ClientTextStyleVO.COLOR_TITLE),
                contentList));
 
        List<ClientTextStyleVO> contentList2 = new ArrayList<>();
        contentList2.add(new ClientTextStyleVO("你的账户仍是" + originalName, ClientTextStyleVO.COLOR_CONTENT));
        listMsg.add(CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("成长详情", ClientTextStyleVO.COLOR_TITLE),
                contentList2));
 
        List<ClientTextStyleVO> contentList3 = new ArrayList<>();
        contentList3.add(new ClientTextStyleVO(reson, ClientTextStyleVO.COLOR_CONTENT));
        listMsg.add(CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("拒绝原因", ClientTextStyleVO.COLOR_TITLE),
                contentList3));
 
        listMsg.add(CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("备注", ClientTextStyleVO.COLOR_TITLE),
                new ClientTextStyleVO("如有疑问请联系人工客服", ClientTextStyleVO.COLOR_CONTENT)));
 
        MsgAccountDetail detail = new MsgAccountDetail();
        detail.setTitle("等级成长");
        detail.setType(MsgTypeAccountTypeEnum.vipPgrade);
        detail.setUser(new UserInfo(uid));
        detail.setCreateTime(new Date());
        detail.setRead(false);
        detail.setExtraInfo(new Gson().toJson(listMsg));
        return detail;
    }
 
    /**
     * 普通会员、高级会员自动提升
     * @param uid
     * @param originalName
     * @param upName
     * @param days
     * @param targetNum1
     * @param type
     * @param targetNum2
     * @param beizu
     * @return
     */
    public static MsgAccountDetail vipPreUpgrade(Long uid, String originalName, String upName, int days,
            long targetNum1, Long targetNum2, boolean teamPass) {
        if (uid == null || originalName == null || upName == null)
            return null;
 
        List<CommonMsgItemVO> listMsg = new ArrayList<>();
        List<ClientTextStyleVO> contentList = new ArrayList<>();
        contentList.add(new ClientTextStyleVO("恭喜你!有效", ClientTextStyleVO.COLOR_CONTENT));
        if (teamPass) {
            contentList.add(new ClientTextStyleVO("直接粉丝已达", ClientTextStyleVO.COLOR_CONTENT));
            contentList.add(new ClientTextStyleVO(targetNum1 + "", ClientTextStyleVO.COLOR_HIGHLIGHT_CONTENT));
            contentList.add(new ClientTextStyleVO("人,有效间接粉丝已达", ClientTextStyleVO.COLOR_CONTENT));
            contentList.add(new ClientTextStyleVO(targetNum2 + "", ClientTextStyleVO.COLOR_HIGHLIGHT_CONTENT));
            contentList.add(new ClientTextStyleVO("人", ClientTextStyleVO.COLOR_CONTENT));
        } else {
            contentList.add(new ClientTextStyleVO("返利+分享订单已达", ClientTextStyleVO.COLOR_CONTENT));
            contentList.add(new ClientTextStyleVO(targetNum1 + "", ClientTextStyleVO.COLOR_HIGHLIGHT_CONTENT));
            contentList.add(new ClientTextStyleVO("笔", ClientTextStyleVO.COLOR_CONTENT));
        }
        listMsg.add(CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("成长说明", ClientTextStyleVO.COLOR_TITLE),
                contentList));
 
        List<ClientTextStyleVO> contentList2 = new ArrayList<>();
        contentList2.add(new ClientTextStyleVO("你的账户已由" + originalName + "升级为", ClientTextStyleVO.COLOR_CONTENT));
        contentList2.add(new ClientTextStyleVO(upName, ClientTextStyleVO.COLOR_HIGHLIGHT_CONTENT));
        listMsg.add(CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("成长详情", ClientTextStyleVO.COLOR_TITLE),
                contentList2));
 
        List<ClientTextStyleVO> contentList3 = new ArrayList<>();
        contentList3.add(new ClientTextStyleVO(days + "", ClientTextStyleVO.COLOR_HIGHLIGHT_CONTENT));
        contentList3.add(new ClientTextStyleVO("天", ClientTextStyleVO.COLOR_CONTENT));
        listMsg.add(CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("共耗时", ClientTextStyleVO.COLOR_TITLE),
                contentList3));
 
        listMsg.add(CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("对应权益", ClientTextStyleVO.COLOR_TITLE),
                new ClientTextStyleVO("从收到本消息起,你将获得该账户等级对应的全部权益", ClientTextStyleVO.COLOR_CONTENT)));
 
        listMsg.add(CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("备注", ClientTextStyleVO.COLOR_TITLE),
                new ClientTextStyleVO("无", ClientTextStyleVO.COLOR_CONTENT)));
 
        MsgAccountDetail detail = new MsgAccountDetail();
        detail.setTitle("等级成长");
        detail.setType(MsgTypeAccountTypeEnum.vipPgrade);
        detail.setUser(new UserInfo(uid));
        detail.setCreateTime(new Date());
        detail.setRead(false);
        detail.setExtraInfo(new Gson().toJson(listMsg));
        return detail;
    }
 
    /**
     * 普通会员、高级会员自动提升
     * @param uid
     * @param originalName
     * @param upName
     * @param days
     * @param targetNum1
     * @param type
     * @param targetNum2
     * @param beizu
     * @return
     */
    public static MsgAccountDetail vipUpgradeSuccess(Long uid, int days) {
        if (uid == null)
            return null;
 
        List<CommonMsgItemVO> listMsg = new ArrayList<>();
        listMsg.add(CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("成长说明", ClientTextStyleVO.COLOR_TITLE),
                new ClientTextStyleVO("恭喜你!已通过人工审核", ClientTextStyleVO.COLOR_CONTENT)));
 
        List<ClientTextStyleVO> contentList2 = new ArrayList<>();
        contentList2.add(new ClientTextStyleVO("你的账户已由高级会员升级为", ClientTextStyleVO.COLOR_CONTENT));
        contentList2.add(new ClientTextStyleVO("超级会员", ClientTextStyleVO.COLOR_HIGHLIGHT_CONTENT));
        listMsg.add(CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("成长详情", ClientTextStyleVO.COLOR_TITLE),
                contentList2));
 
        List<ClientTextStyleVO> contentList3 = new ArrayList<>();
        contentList3.add(new ClientTextStyleVO(days + "", ClientTextStyleVO.COLOR_HIGHLIGHT_CONTENT));
        contentList3.add(new ClientTextStyleVO("天", ClientTextStyleVO.COLOR_CONTENT));
        listMsg.add(CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("共耗时", ClientTextStyleVO.COLOR_TITLE),
                contentList3));
 
        listMsg.add(CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("对应权益", ClientTextStyleVO.COLOR_TITLE),
                new ClientTextStyleVO("从收到本消息起,你将获得该账户等级对应的全部权益", ClientTextStyleVO.COLOR_CONTENT)));
 
        listMsg.add(CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("备注", ClientTextStyleVO.COLOR_TITLE),
                new ClientTextStyleVO("感恩努力的自己,让我们携手板栗快省一起成长", ClientTextStyleVO.COLOR_CONTENT)));
 
        MsgAccountDetail detail = new MsgAccountDetail();
        detail.setTitle("等级成长");
        detail.setType(MsgTypeAccountTypeEnum.vipPgrade);
        detail.setUser(new UserInfo(uid));
        detail.setCreateTime(new Date());
        detail.setRead(false);
        detail.setExtraInfo(new Gson().toJson(listMsg));
        return detail;
    }
 
    /**
     * 普通会员、高级会员自动提升
     * @param uid
     * @param originalName
     * @param upName
     * @param days
     * @param targetNum1
     * @param type
     * @param targetNum2
     * @param beizu
     * @return
     */
    public static MsgAccountDetail vipUpgradeFail(Long uid, String reason) {
        if (uid == null)
            return null;
 
        List<CommonMsgItemVO> listMsg = new ArrayList<>();
        listMsg.add(CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("成长说明", ClientTextStyleVO.COLOR_TITLE),
                new ClientTextStyleVO("很抱歉!未通过人工审核", ClientTextStyleVO.COLOR_CONTENT)));
        listMsg.add(CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("成长详情", ClientTextStyleVO.COLOR_TITLE),
                new ClientTextStyleVO("你的账户仍是高级会员", ClientTextStyleVO.COLOR_CONTENT)));
 
        if (!StringUtil.isNullOrEmpty(reason)) {
            listMsg.add(
                    CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("拒绝原因", ClientTextStyleVO.COLOR_TITLE),
                            new ClientTextStyleVO(reason, ClientTextStyleVO.COLOR_CONTENT)));
        }
 
        listMsg.add(CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("备注", ClientTextStyleVO.COLOR_TITLE),
                new ClientTextStyleVO("如有疑问请联系人工客服", ClientTextStyleVO.COLOR_CONTENT)));
 
        MsgAccountDetail detail = new MsgAccountDetail();
        detail.setTitle("等级成长");
        detail.setType(MsgTypeAccountTypeEnum.vipPgrade);
        detail.setUser(new UserInfo(uid));
        detail.setCreateTime(new Date());
        detail.setRead(false);
        detail.setExtraInfo(new Gson().toJson(listMsg));
        return detail;
    }
 
    /**
     *  资深导师--运营发出邀约
     * @param uid
     * @param nickname
     * @param kefuName
     * @param kefuWX
     * @return
     */
    public static MsgAccountDetail teacherInvite(Long uid, String nickname, String kefuName, String kefuWX) {
        if (uid == null)
            return null;
 
        List<CommonMsgItemVO> listMsg = new ArrayList<>();
        listMsg.add(CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("邀约原因", ClientTextStyleVO.COLOR_TITLE),
                new ClientTextStyleVO("尊敬的" + nickname + ",你已符合成长为一名资深导师的条件,希望你能加入板栗快省运营团队,与我们共创辉煌",
                        ClientTextStyleVO.COLOR_CONTENT)));
        listMsg.add(CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("专属客服", ClientTextStyleVO.COLOR_TITLE),
                new ClientTextStyleVO(kefuName + "-微信号:" + kefuWX, ClientTextStyleVO.COLOR_CONTENT)));
        listMsg.add(CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("对应权益", ClientTextStyleVO.COLOR_TITLE),
                new ClientTextStyleVO("如果你接受邀约,你将获得该账户等级对应的全部权益 ", ClientTextStyleVO.COLOR_CONTENT)));
        listMsg.add(CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("备注", ClientTextStyleVO.COLOR_TITLE),
                new ClientTextStyleVO("资深导师资格需要后台手动开通,请务必联系专属客服", ClientTextStyleVO.COLOR_CONTENT)));
 
        MsgAccountDetail detail = new MsgAccountDetail();
        detail.setTitle("等级成长");
        detail.setType(MsgTypeAccountTypeEnum.vipPgrade);
        detail.setUser(new UserInfo(uid));
        detail.setCreateTime(new Date());
        detail.setRead(false);
        detail.setExtraInfo(new Gson().toJson(listMsg));
        return detail;
    }
 
    /**
     *  资深导师--运营发出邀约
     * @param uid
     * @param nickname
     * @param kefuName
     * @param kefuWX
     * @return
     */
    public static MsgAccountDetail teacherSuccess(Long uid, int days, String kefuName, String kefuWX) {
        if (uid == null)
            return null;
 
        List<CommonMsgItemVO> listMsg = new ArrayList<>();
        List<ClientTextStyleVO> contentList = new ArrayList<>();
        contentList.add(new ClientTextStyleVO("恭喜你!你的账户已由超级会员升级为", ClientTextStyleVO.COLOR_CONTENT));
        contentList.add(new ClientTextStyleVO("资深导师", ClientTextStyleVO.COLOR_HIGHLIGHT_CONTENT));
        listMsg.add(CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("成长详情", ClientTextStyleVO.COLOR_TITLE),
                contentList));
 
        List<ClientTextStyleVO> contentList2 = new ArrayList<>();
        contentList2.add(new ClientTextStyleVO(days + "", ClientTextStyleVO.COLOR_HIGHLIGHT_CONTENT));
        contentList2.add(new ClientTextStyleVO("天", ClientTextStyleVO.COLOR_CONTENT));
        listMsg.add(CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("成长详情", ClientTextStyleVO.COLOR_TITLE),
                contentList2));
 
        listMsg.add(CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("邀约原因", ClientTextStyleVO.COLOR_TITLE),
                new ClientTextStyleVO("从收到本消息起,你将获得该账户等级对应的全部权益", ClientTextStyleVO.COLOR_CONTENT)));
        listMsg.add(CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("专属客服", ClientTextStyleVO.COLOR_TITLE),
                new ClientTextStyleVO(kefuName + "-微信号:" + kefuWX, ClientTextStyleVO.COLOR_CONTENT)));
        listMsg.add(CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("备注", ClientTextStyleVO.COLOR_TITLE),
                new ClientTextStyleVO("与你共创辉煌", ClientTextStyleVO.COLOR_CONTENT)));
 
        MsgAccountDetail detail = new MsgAccountDetail();
        detail.setTitle("等级成长");
        detail.setType(MsgTypeAccountTypeEnum.vipPgrade);
        detail.setUser(new UserInfo(uid));
        detail.setCreateTime(new Date());
        detail.setRead(false);
        detail.setExtraInfo(new Gson().toJson(listMsg));
        return detail;
    }
}