|
@@ -350,7 +350,7 @@ func (apiService *GameTask) GetUsedGameTaskInfoList(api task.GameTask, info requ
|
|
|
offset := info.PageSize * (info.Page - 1)
|
|
offset := info.PageSize * (info.Page - 1)
|
|
|
db := global.GVA_DB.Model(&task.GameTask{})
|
|
db := global.GVA_DB.Model(&task.GameTask{})
|
|
|
var apiList []task.GameTaskUnion
|
|
var apiList []task.GameTaskUnion
|
|
|
- db = db.Select("game_task.*, task_conf.add_fee_notice")
|
|
|
|
|
|
|
+ db = db.Select("game_task.*, task_conf.add_fee_notice, task_conf.simulator_type")
|
|
|
db = db.Joins("left join task_conf on task_conf.task_id = game_task.task_id")
|
|
db = db.Joins("left join task_conf on task_conf.task_id = game_task.task_id")
|
|
|
db = db.Where("is_del = ?", -1)
|
|
db = db.Where("is_del = ?", -1)
|
|
|
if api.TaskName != "" {
|
|
if api.TaskName != "" {
|
|
@@ -415,6 +415,7 @@ func (apiService *GameTask) GetUsedGameTaskInfoList(api task.GameTask, info requ
|
|
|
var apiReply = new(response.GetGameTaskListUnionReply)
|
|
var apiReply = new(response.GetGameTaskListUnionReply)
|
|
|
apiReply.Status = apiInfo.Status
|
|
apiReply.Status = apiInfo.Status
|
|
|
apiReply.TaskId = apiInfo.TaskId
|
|
apiReply.TaskId = apiInfo.TaskId
|
|
|
|
|
+ apiReply.SimulatorType = apiInfo.SimulatorType
|
|
|
apiReply.TaskName = apiInfo.TaskName
|
|
apiReply.TaskName = apiInfo.TaskName
|
|
|
apiReply.AddFeeNotice = apiInfo.AddFeeNotice
|
|
apiReply.AddFeeNotice = apiInfo.AddFeeNotice
|
|
|
apiReply.GamePort = gamePortMp[apiInfo.GamePortId].ChannelName
|
|
apiReply.GamePort = gamePortMp[apiInfo.GamePortId].ChannelName
|
|
@@ -1160,15 +1161,15 @@ func (s *GameTask) GetFeeAccountList(taskId int) (fa []FeeAccount, err error) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//从小绵羊后台获取数据并返回
|
|
//从小绵羊后台获取数据并返回
|
|
|
-func (apiService *GameTask) GetXmyTaskList(startDay string, endDay string) (list interface{}, err error) {
|
|
|
|
|
|
|
+func (apiService *GameTask) GetXmyTaskList(startDay string, endDay string) (list interface{}, err error) {
|
|
|
var apisReply *response.XmyGameDataReply
|
|
var apisReply *response.XmyGameDataReply
|
|
|
client := &http.Client{}
|
|
client := &http.Client{}
|
|
|
url := "http://api.sheepsdk.17xmy.com/foreign/api/get_youhua_data.php?start_day=" + startDay + "&end_day=" + endDay
|
|
url := "http://api.sheepsdk.17xmy.com/foreign/api/get_youhua_data.php?start_day=" + startDay + "&end_day=" + endDay
|
|
|
- req, err := http.NewRequest("GET", url, nil)//GET大写
|
|
|
|
|
|
|
+ req, err := http.NewRequest("GET", url, nil) //GET大写
|
|
|
if err != nil {
|
|
if err != nil {
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
- rep, err := client.Do(req)//发起请求
|
|
|
|
|
|
|
+ rep, err := client.Do(req) //发起请求
|
|
|
if err != nil {
|
|
if err != nil {
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
@@ -1179,10 +1180,9 @@ func (apiService *GameTask) GetXmyTaskList(startDay string, endDay string) (lis
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
//fmt.Printf("%s", apisReply)
|
|
//fmt.Printf("%s", apisReply)
|
|
|
- return apisReply.Data , err
|
|
|
|
|
|
|
+ return apisReply.Data, err
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
func (exa *GameTask) TaskStatisticsList2Excel(infoList []response.GetGameTargetComplete, filePath string) error {
|
|
func (exa *GameTask) TaskStatisticsList2Excel(infoList []response.GetGameTargetComplete, filePath string) error {
|
|
|
excel := excelize.NewFile()
|
|
excel := excelize.NewFile()
|
|
|
excel.SetSheetRow("Sheet1", "A1", &[]string{
|
|
excel.SetSheetRow("Sheet1", "A1", &[]string{
|