上传系统公告配置

This commit is contained in:
liwei1dao 2022-11-28 13:58:55 +08:00
parent 7f9807f51b
commit 8b98fd0dc5
2 changed files with 278 additions and 16 deletions

View File

@ -1,13 +1,14 @@
[ [
{ {
"key": 10001, "key": 1,
"display": false, "display": false,
"type": 1, "type": 1,
"text": { "text": {
"key": "chat_text_10001", "key": "chat_text_1",
"text": "<font color=#ff3f3f>【system】</font> Good afternoon !" "text": "<font color=#ff3f3f>【system】</font> Good afternoon !"
}, },
"data": 0, "data": 0,
"data2": 0,
"week": [ "week": [
1, 1,
2, 2,
@ -21,14 +22,15 @@
"time_m": 57 "time_m": 57
}, },
{ {
"key": 10002, "key": 2,
"display": false, "display": false,
"type": 1, "type": 1,
"text": { "text": {
"key": "chat_text_10002", "key": "chat_text_2",
"text": "<font color=#ff3f3f>【system】</font> Good afternoon !" "text": "<font color=#ff3f3f>【system】</font> Good afternoon !"
}, },
"data": 0, "data": 0,
"data2": 0,
"week": [ "week": [
1, 1,
2, 2,
@ -40,14 +42,15 @@
"time_m": 58 "time_m": 58
}, },
{ {
"key": 10003, "key": 3,
"display": false, "display": false,
"type": 1, "type": 1,
"text": { "text": {
"key": "chat_text_10003", "key": "chat_text_3",
"text": "<font color=#ff3f3f>【system】</font> Good afternoon !" "text": "<font color=#ff3f3f>【system】</font> Good afternoon !"
}, },
"data": 0, "data": 0,
"data2": 0,
"week": [ "week": [
1, 1,
2, 2,
@ -59,66 +62,323 @@
"time_m": 59 "time_m": 59
}, },
{ {
"key": 20001, "key": 4,
"display": false, "display": false,
"type": 2, "type": 2,
"text": { "text": {
"key": "chat_text_20001", "key": "chat_text_4",
"text": "<font color=#ff3f3f>【system】</font> Welcome Dream Works !" "text": "<font color=#ff3f3f>【system】</font> Welcome Dream Works !"
}, },
"data": 0, "data": 0,
"data2": 0,
"week": [], "week": [],
"time_h": 0, "time_h": 0,
"time_m": 0 "time_m": 0
}, },
{ {
"key": 30002, "key": 5,
"display": true, "display": true,
"type": 3, "type": 3,
"text": { "text": {
"key": "chat_text_30002", "key": "chat_text_5",
"text": "<font color=#ffc73f>【hearsay】%v</font> through unremitting efforts, the %vhas been strengthened to level 13!" "text": "<font color=#ffc73f>【hearsay】%v</font> through unremitting efforts, the %vhas been strengthened to level 13!"
}, },
"data": 13, "data": 13,
"data2": 0,
"week": [], "week": [],
"time_h": 0, "time_h": 0,
"time_m": 0 "time_m": 0
}, },
{ {
"key": 30003, "key": 6,
"display": true, "display": true,
"type": 3, "type": 3,
"text": { "text": {
"key": "chat_text_30003", "key": "chat_text_6",
"text": "<font color=#ffc73f>【hearsay】%v</font> through unremitting efforts, the %vhas been strengthened to level 14!" "text": "<font color=#ffc73f>【hearsay】%v</font> through unremitting efforts, the %vhas been strengthened to level 14!"
}, },
"data": 14, "data": 14,
"data2": 0,
"week": [], "week": [],
"time_h": 0, "time_h": 0,
"time_m": 0 "time_m": 0
}, },
{ {
"key": 30004, "key": 7,
"display": true, "display": true,
"type": 3, "type": 3,
"text": { "text": {
"key": "chat_text_30004", "key": "chat_text_7",
"text": "<font color=#ffc73f>【hearsay】%v</font> through unremitting efforts, the %vhas been strengthened to level 15!" "text": "<font color=#ffc73f>【hearsay】%v</font> through unremitting efforts, the %vhas been strengthened to level 15!"
}, },
"data": 15, "data": 15,
"data2": 0,
"week": [], "week": [],
"time_h": 0, "time_h": 0,
"time_m": 0 "time_m": 0
}, },
{ {
"key": 40001, "key": 8,
"display": false, "display": false,
"type": 4, "type": 4,
"text": { "text": {
"key": "chat_text_40001", "key": "chat_text_8",
"text": "<font color=#ffc73f>【hearsay】%v</font> breakthrough 100 floors of the tower!" "text": "<font color=#ffc73f>【hearsay】%v</font> breakthrough 100 floors of the tower!"
}, },
"data": 100, "data": 100,
"data2": 0,
"week": [],
"time_h": 0,
"time_m": 0
},
{
"key": 9,
"display": true,
"type": 5,
"text": {
"key": "chat_text_9",
"text": "服务器即将维护,请及时下线避免数据丢失!"
},
"data": 5,
"data2": 0,
"week": [],
"time_h": 0,
"time_m": 0
},
{
"key": 10,
"display": true,
"type": 6,
"text": {
"key": "chat_text_10",
"text": "【传闻】%v通关了赛季塔50层"
},
"data": 50,
"data2": 0,
"week": [],
"time_h": 0,
"time_m": 0
},
{
"key": 11,
"display": true,
"type": 7,
"text": {
"key": "chat_text_11",
"text": "【传闻】%v已经%v培养至60级"
},
"data": 60,
"data2": 0,
"week": [],
"time_h": 0,
"time_m": 0
},
{
"key": 12,
"display": true,
"type": 8,
"text": {
"key": "chat_text_12",
"text": "【传闻】%v已经%v培养至6星"
},
"data": 5,
"data2": 0,
"week": [],
"time_h": 0,
"time_m": 0
},
{
"key": 13,
"display": true,
"type": 9,
"text": {
"key": "chat_text_13",
"text": "【传闻】%v已经%v技能培养至满级"
},
"data": 5,
"data2": 0,
"week": [],
"time_h": 0,
"time_m": 0
},
{
"key": 14,
"display": true,
"type": 10,
"text": {
"key": "chat_text_14",
"text": "【传闻】%v已经%v共鸣至满级"
},
"data": 5,
"data2": 0,
"week": [],
"time_h": 0,
"time_m": 0
},
{
"key": 15,
"display": true,
"type": 11,
"text": {
"key": "chat_text_15",
"text": "【传闻】%v已经%v觉醒至满级"
},
"data": 5,
"data2": 0,
"week": [],
"time_h": 0,
"time_m": 0
},
{
"key": 16,
"display": true,
"type": 12,
"text": {
"key": "chat_text_16",
"text": "【传闻】%v已经达到了60级!"
},
"data": 60,
"data2": 0,
"week": [],
"time_h": 0,
"time_m": 0
},
{
"key": 17,
"display": true,
"type": 13,
"text": {
"key": "chat_text_17",
"text": "【传闻】%v在招募中获得了v%!"
},
"data": 5,
"data2": 0,
"week": [],
"time_h": 0,
"time_m": 0
},
{
"key": 18,
"display": true,
"type": 14,
"text": {
"key": "chat_text_18",
"text": "【传闻】%v通关了维京远征火焰泰坦难度10"
},
"data": 10,
"data2": 1,
"week": [],
"time_h": 0,
"time_m": 0
},
{
"key": 19,
"display": true,
"type": 14,
"text": {
"key": "chat_text_19",
"text": "【传闻】%v通关了维京远征冰霜泰坦难度10"
},
"data": 10,
"data2": 2,
"week": [],
"time_h": 0,
"time_m": 0
},
{
"key": 20,
"display": true,
"type": 14,
"text": {
"key": "chat_text_20",
"text": "【传闻】%v通关了维京远征森林泰坦难度10"
},
"data": 10,
"data2": 3,
"week": [],
"time_h": 0,
"time_m": 0
},
{
"key": 21,
"display": true,
"type": 14,
"text": {
"key": "chat_text_21",
"text": "【传闻】%v通关了维京远征冰霜泰坦武器难度10"
},
"data": 10,
"data2": 11,
"week": [],
"time_h": 0,
"time_m": 0
},
{
"key": 22,
"display": true,
"type": 14,
"text": {
"key": "chat_text_22",
"text": "【传闻】%v通关了维京远征森林泰坦饰品难度10"
},
"data": 10,
"data2": 12,
"week": [],
"time_h": 0,
"time_m": 0
},
{
"key": 23,
"display": true,
"type": 15,
"text": {
"key": "chat_text_23",
"text": "【传闻】%v通关了狩猎巨型猩猩难度10"
},
"data": 10,
"data2": 1,
"week": [],
"time_h": 0,
"time_m": 0
},
{
"key": 24,
"display": true,
"type": 15,
"text": {
"key": "chat_text_24",
"text": "【传闻】%v通关了狩猎火龙难度10"
},
"data": 10,
"data2": 2,
"week": [],
"time_h": 0,
"time_m": 0
},
{
"key": 25,
"display": true,
"type": 15,
"text": {
"key": "chat_text_25",
"text": "【传闻】%v通关了狩猎大厨难度10"
},
"data": 10,
"data2": 3,
"week": [],
"time_h": 0,
"time_m": 0
},
{
"key": 26,
"display": true,
"type": 15,
"text": {
"key": "chat_text_26",
"text": "【传闻】%v通关了狩猎太空海星难度10"
},
"data": 10,
"data2": 4,
"week": [], "week": [],
"time_h": 0, "time_h": 0,
"time_m": 0 "time_m": 0

View File

@ -16,6 +16,7 @@ type GameChatSystemData struct {
Type int32 Type int32
Text string Text string
Data int32 Data int32
Data2 int32
Week []int32 Week []int32
TimeH int32 TimeH int32
TimeM int32 TimeM int32
@ -33,6 +34,7 @@ func (_v *GameChatSystemData)Deserialize(_buf map[string]interface{}) (err error
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["type"].(float64); !_ok_ { err = errors.New("type error"); return }; _v.Type = int32(_tempNum_) } { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["type"].(float64); !_ok_ { err = errors.New("type error"); return }; _v.Type = int32(_tempNum_) }
{var _ok_ bool; var __json_text__ map[string]interface{}; if __json_text__, _ok_ = _buf["text"].(map[string]interface{}) ; !_ok_ { err = errors.New("_v.Text error"); return }; { var _ok_ bool; if _, _ok_ = __json_text__["key"].(string); !_ok_ { err = errors.New("key error"); return } }; { var _ok_ bool; if _v.Text, _ok_ = __json_text__["text"].(string); !_ok_ { err = errors.New("text error"); return } } } {var _ok_ bool; var __json_text__ map[string]interface{}; if __json_text__, _ok_ = _buf["text"].(map[string]interface{}) ; !_ok_ { err = errors.New("_v.Text error"); return }; { var _ok_ bool; if _, _ok_ = __json_text__["key"].(string); !_ok_ { err = errors.New("key error"); return } }; { var _ok_ bool; if _v.Text, _ok_ = __json_text__["text"].(string); !_ok_ { err = errors.New("text error"); return } } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["data"].(float64); !_ok_ { err = errors.New("data error"); return }; _v.Data = int32(_tempNum_) } { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["data"].(float64); !_ok_ { err = errors.New("data error"); return }; _v.Data = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["data2"].(float64); !_ok_ { err = errors.New("data2 error"); return }; _v.Data2 = int32(_tempNum_) }
{ {
var _arr_ []interface{} var _arr_ []interface{}
var _ok_ bool var _ok_ bool