|
@@ -1,7 +1,10 @@
|
|
|
package front
|
|
|
|
|
|
import (
|
|
|
+ "app.yhyue.com/moapp/jybase/common"
|
|
|
"app.yhyue.com/moapp/jybase/go-xweb/xweb"
|
|
|
+ "fmt"
|
|
|
+ "jy/src/jfw/config"
|
|
|
)
|
|
|
|
|
|
// DataMarket 数据市场
|
|
@@ -23,7 +26,12 @@ func (this *DataMarket) Index() {
|
|
|
|
|
|
// CustomExport 数据定制导出
|
|
|
func (this *DataMarket) CustomExport() {
|
|
|
- this.T["AB"] = len(this.Header("User-Agent"))/2 == 0
|
|
|
+ showA := false
|
|
|
+ if uA := this.Header("User-Agent"); uA != "" {
|
|
|
+ fmt.Println(int(uA[len(uA)-1])/10, "<", common.IntAll(config.Sysconfig["dataMarketShowAB"]), int(uA[len(uA)-1])/10 < common.IntAll(config.Sysconfig["dataMarketShowAB"]))
|
|
|
+ showA = int(uA[len(uA)-1])/10 < common.IntAll(config.Sysconfig["dataMarketShowAB"])
|
|
|
+ }
|
|
|
+ this.T["AB"] = showA
|
|
|
this.Render("/dataMarket/customExport/index.html")
|
|
|
}
|
|
|
|