Jianghan 11 meses atrás
pai
commit
912c70fd07
2 arquivos alterados com 9 adições e 3 exclusões
  1. 9 0
      src/front/group.go
  2. 0 3
      src/main.go

+ 9 - 0
src/front/group.go

@@ -984,6 +984,7 @@ func (f *Front) GroupImportData() {
 	lastid := ""
 	c1 := 0                                  // 多包第n条数据
 	packageM := make(map[string]interface{}) // 记录多包信息,多行用到
+	isPush := 0
 	for rn, row := range rows {
 		update := make(map[string]interface{})
 		del := make(map[string]interface{})
@@ -1037,6 +1038,9 @@ func (f *Front) GroupImportData() {
 							m["s_winner"] = qu.ObjToString(update["v_baseinfo.s_winner"])
 						}
 						m["is_push"] = qu.IntAll(update["is_push"])
+						if qu.IntAll(update["is_push"]) == 1 {
+							isPush = 1
+						}
 						//packageM[fmt.Sprint(c1)] = map[string]interface{}{"winner_all": append([]interface{}{}, m)}
 						packageM[fmt.Sprint(c1)] = m
 						update["v_baseinfo.package"] = packageM
@@ -1054,6 +1058,7 @@ func (f *Front) GroupImportData() {
 					}
 				} else {
 					c1 = 0
+					isPush = 0
 					packageM = make(map[string]interface{})
 					m := make(map[string]interface{})
 					if update["v_baseinfo.bidamount"] != nil {
@@ -1070,6 +1075,10 @@ func (f *Front) GroupImportData() {
 			} else {
 				count++
 				c1 = 0
+				isPush = 0
+			}
+			if qu.IntAll(update["v_baseinfo.multipackage"]) == 1 && isPush == 1 {
+				update["is_push"] = 1
 			}
 			lastid = id
 			if len(del) > 0 {

+ 0 - 3
src/main.go

@@ -5,7 +5,6 @@ import (
 	_ "filter"
 	"front"
 	"github.com/cron"
-	"log"
 	qu "qfw/util"
 	"time"
 	. "util"
@@ -15,8 +14,6 @@ import (
 
 func init() {
 
-	log.Println(SE.DecodeString("QllJL2tzaAIGB1oSXxQobXA5BAMADkwN"))
-
 	qu.ReadConfig(&Sysconfig) //初始化config
 	qu.ReadConfig("./web/qua_res/qua_config.json", &Quaconfig)
 	InitConfig() //初始化连接