main_test.go 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. package main
  2. import (
  3. "testing"
  4. )
  5. func TestName(t *testing.T) {
  6. //ssk:="4Iki42L+u5IYKcYABCDe/A=="
  7. //r:="K8yfw2N2JjgdoYwxSvTq39dKEYRruSftVIZHQQEAs9Kh3XRazd1wArh0kkvWKLvxySX/xLI68p973ea9f4cevYPeMENLX/6dFEyCbxv2dcZlKh8sFSi4rqDXuPf36Hayf024ek/35EylDt8n+XqqUfKv1RZePQYZuxThsQ92yba4FB4Nh2VHC7GFoIRQEkOBCq9sTqjX0IAVrUxhs0hz092+1AMZv+pptw9hjYv144/OIzmwxV97H9svAjVvqYbeWexlIocbAp7Z6+dmyHyQILpKFFgWlUE5vVZkDQAAeh+KcV//7aShZu+l7az1er3B5AOkNQ8UJX85Ux5wyCeduxbmOzGdViycrFQVa86r0cEGVFcNWmyGElUse5jzU3H+P/XMJ9AiZZ2ybvT3NrwgdBck49iulEXoWQKjczTGBIE="
  8. //vi:="gIEEvlb9cEjErJxZ5sflrw=="
  9. //phone , _ := weapp.DecryptMobile(ssk, r, vi)
  10. //fmt.Print(phone)
  11. //global.GVA_VP = core.Viper() // 初始化Viper
  12. //global.GVA_LOG = core.Zap() // 初始化zap日志库
  13. //global.GVA_DB = initialize.Gorm() // gorm连接数据库
  14. //var dictionaryDetailService = service.ServiceGroupApp.SystemServiceGroup.DictionaryDetailService
  15. //f,_:=excelize.OpenFile("C:\\Users\\ice\\Documents\\WeChat Files\\zk1006\\FileStorage\\File\\2021-09\\21类.xlsx")
  16. //files := f.GetSheetList()
  17. //s:= true
  18. //var ss *bool
  19. //ss=&s
  20. //j:=10
  21. //for _, sheet := range files {
  22. // rows,_:=f.GetRows(sheet)
  23. // fmt.Println(j)
  24. // i:=0
  25. // for _, row := range rows {
  26. // if len(row)>1&& row[1]!="" {
  27. // fmt.Printf("\t%v",i )
  28. //
  29. // ditc:=system.SysDictionaryDetail{Label:strings.Replace(strings.Replace(row[1], "\n", "", -1),"◎","",-1),
  30. // Value: i,Status: ss ,Sort: i,SysDictionaryID: j}
  31. // dictionaryDetailService.CreateSysDictionaryDetail(ditc)
  32. // fmt.Println()
  33. // i++
  34. // }
  35. // //for index, value := range row {
  36. //
  37. // // fmt.Printf("\t%v", index)
  38. // //
  39. // //}
  40. //
  41. // }
  42. // j++
  43. // fmt.Println()
  44. //}
  45. }