解析报错
This commit is contained in:
parent
31b6cd973f
commit
eb835f6ae7
@ -8,6 +8,7 @@
|
||||
"num": [
|
||||
6
|
||||
],
|
||||
"pic": "fb_pt_tkhx",
|
||||
"days": 2,
|
||||
"tipstxt": {
|
||||
"key": "celebration_celebration_tipstxt_1",
|
||||
@ -23,6 +24,7 @@
|
||||
"num": [
|
||||
6
|
||||
],
|
||||
"pic": "xmwg_jyfb_boss1",
|
||||
"days": 2,
|
||||
"tipstxt": {
|
||||
"key": "celebration_celebration_tipstxt_2",
|
||||
@ -42,6 +44,7 @@
|
||||
2,
|
||||
2
|
||||
],
|
||||
"pic": "wjyz_img002",
|
||||
"days": 2,
|
||||
"tipstxt": {
|
||||
"key": "celebration_celebration_tipstxt_3",
|
||||
|
@ -12,7 +12,7 @@ import (
|
||||
|
||||
const (
|
||||
venturegiftsdraw = "game_venturegiftsdraw.json" //大转盘
|
||||
hdcelebration = "game_hdcelebration.json" //开服庆典
|
||||
hdcelebration = "game_celebration.json" //开服庆典
|
||||
)
|
||||
|
||||
// /配置管理基础组件
|
||||
|
@ -15,6 +15,7 @@ type GameCelebrationData struct {
|
||||
Systemtype int32
|
||||
Bosstype []int32
|
||||
Num []int32
|
||||
Pic string
|
||||
Days int32
|
||||
Tipstxt string
|
||||
}
|
||||
@ -56,6 +57,7 @@ func (_v *GameCelebrationData)Deserialize(_buf map[string]interface{}) (err erro
|
||||
}
|
||||
}
|
||||
|
||||
{ var _ok_ bool; if _v.Pic, _ok_ = _buf["pic"].(string); !_ok_ { err = errors.New("pic error"); return } }
|
||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["days"].(float64); !_ok_ { err = errors.New("days error"); return }; _v.Days = int32(_tempNum_) }
|
||||
{var _ok_ bool; var __json_text__ map[string]interface{}; if __json_text__, _ok_ = _buf["tipstxt"].(map[string]interface{}) ; !_ok_ { err = errors.New("_v.Tipstxt error"); return }; { var _ok_ bool; if _, _ok_ = __json_text__["key"].(string); !_ok_ { err = errors.New("key error"); return } }; { var _ok_ bool; if _v.Tipstxt, _ok_ = __json_text__["text"].(string); !_ok_ { err = errors.New("text error"); return } } }
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user