Commit 012db57c by mushishixian

修复错误

parent bb6e33c3
2020-10-27 15:38:39.742 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-27 15:38:40.476 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-27 15:38:40.478 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-26 14:47:08.976 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:92) not found
2020-10-26 14:47:08.978 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:116) redigo: nil returned
2020-10-26 14:47:29.546 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:92) not found
2020-10-26 14:47:29.548 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:116) redigo: nil returned
2020-10-26 14:47:29.564 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:92) not found
2020-10-26 14:47:29.565 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:116) redigo: nil returned
2020-10-26 14:47:32.214 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:92) not found
2020-10-26 14:47:32.216 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:116) redigo: nil returned
2020-10-26 14:47:32.232 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:92) not found
2020-10-26 14:47:32.233 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:116) redigo: nil returned
2020-10-26 14:47:32.835 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:92) not found
2020-10-26 14:47:32.836 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:116) redigo: nil returned
2020-10-26 14:47:32.856 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:92) not found
2020-10-26 14:47:32.858 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:116) redigo: nil returned
2020-10-26 14:47:33.11 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:92) not found
2020-10-26 14:47:33.111 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:116) redigo: nil returned
2020-10-26 14:47:33.144 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:92) not found
2020-10-26 14:47:33.146 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:116) redigo: nil returned
2020-10-26 14:47:33.411 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:92) not found
2020-10-26 14:47:33.413 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:116) redigo: nil returned
2020-10-26 14:47:33.429 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:92) not found
2020-10-26 14:47:33.431 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:116) redigo: nil returned
2020-10-26 14:47:33.687 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:92) not found
2020-10-26 14:47:33.688 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:116) redigo: nil returned
2020-10-26 14:47:33.705 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:92) not found
2020-10-26 14:47:33.706 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:116) redigo: nil returned
2020-10-26 14:47:34.006 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:92) not found
2020-10-26 14:47:34.007 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:116) redigo: nil returned
2020-10-26 14:47:34.024 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:92) not found
2020-10-26 14:47:34.025 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:116) redigo: nil returned
2020-10-26 14:47:34.312 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:92) not found
2020-10-26 14:47:34.314 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:116) redigo: nil returned
2020-10-26 14:47:34.33 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:92) not found
2020-10-26 14:47:34.331 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:116) redigo: nil returned
2020-10-26 14:47:34.805 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:92) not found
2020-10-26 14:47:34.807 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:116) redigo: nil returned
2020-10-26 14:47:34.824 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:92) not found
2020-10-26 14:47:34.825 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:116) redigo: nil returned
2020-10-26 14:47:35.15 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:92) not found
2020-10-26 14:47:35.152 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:116) redigo: nil returned
2020-10-26 14:47:35.17 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:92) not found
2020-10-26 14:47:35.171 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:116) redigo: nil returned
2020-10-26 14:47:35.568 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:92) not found
2020-10-26 14:47:35.569 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:116) redigo: nil returned
2020-10-26 14:47:35.586 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:92) not found
2020-10-26 14:47:35.588 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:116) redigo: nil returned
2020-10-26 14:47:35.991 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:92) not found
2020-10-26 14:47:35.992 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:116) redigo: nil returned
2020-10-26 14:47:36.008 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:92) not found
2020-10-26 14:47:36.009 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:116) redigo: nil returned
2020-10-26 14:47:36.422 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:92) not found
2020-10-26 14:47:36.423 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:116) redigo: nil returned
2020-10-26 14:47:36.44 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:92) not found
2020-10-26 14:47:36.443 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:116) redigo: nil returned
2020-10-26 14:47:37.37 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:92) not found
2020-10-26 14:47:37.371 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:116) redigo: nil returned
2020-10-26 14:47:37.396 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:92) not found
2020-10-26 14:47:37.398 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:116) redigo: nil returned
2020-10-26 14:47:37.653 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:92) not found
2020-10-26 14:47:37.655 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:116) redigo: nil returned
2020-10-26 14:47:37.671 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:92) not found
2020-10-26 14:47:37.672 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:116) redigo: nil returned
2020-10-26 14:48:48.845 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:92) not found
2020-10-26 14:48:48.847 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:116) redigo: nil returned
2020-10-26 14:50:25.966 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:92) not found
2020-10-26 14:50:25.967 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:116) redigo: nil returned
2020-10-26 14:50:25.99 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:92) not found
2020-10-26 14:50:25.991 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:116) redigo: nil returned
2020-10-26 14:50:52.825 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:92) not found
2020-10-26 14:50:52.826 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:116) redigo: nil returned
2020-10-26 14:57:27.674 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:93) not found
2020-10-26 14:57:27.676 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:117) redigo: nil returned
2020-10-26 14:57:29.969 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:93) not found
2020-10-26 14:57:29.97 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:117) redigo: nil returned
2020-10-26 16:26:29.763 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:117) redigo: nil returned
2020-10-26 16:26:33.879 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:93) not found
2020-10-26 16:26:33.881 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:117) redigo: nil returned
2020-10-26 16:29:29.584 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:93) not found
2020-10-26 16:29:29.585 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:117) redigo: nil returned
2020-10-26 16:29:30.402 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:93) not found
2020-10-26 16:29:30.404 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:117) redigo: nil returned
2020-10-26 16:29:30.891 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:93) not found
2020-10-26 16:29:30.893 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:117) redigo: nil returned
2020-10-26 16:30:15.772 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:93) not found
2020-10-26 16:30:15.774 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:117) redigo: nil returned
2020-10-26 16:30:44.058 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:93) not found
2020-10-26 16:30:44.059 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:117) redigo: nil returned
2020-10-26 16:31:04.882 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:93) not found
2020-10-26 16:31:04.884 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:117) redigo: nil returned
2020-10-26 16:31:26.887 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:93) not found
2020-10-26 16:31:26.888 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:117) redigo: nil returned
2020-10-26 16:31:28.575 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:93) not found
2020-10-26 16:31:28.576 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:117) redigo: nil returned
2020-10-26 16:31:41.959 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:93) not found
2020-10-26 16:31:41.96 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:117) redigo: nil returned
2020-10-26 16:31:43.407 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:93) not found
2020-10-26 16:31:43.408 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:117) redigo: nil returned
2020-10-26 16:32:49.993 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:93) not found
2020-10-26 16:32:49.994 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:117) redigo: nil returned
2020-10-26 16:32:51.458 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:93) not found
2020-10-26 16:32:51.459 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:117) redigo: nil returned
2020-10-26 16:33:05.884 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:93) not found
2020-10-26 16:33:05.885 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:117) redigo: nil returned
2020-10-26 16:33:07.349 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:93) not found
2020-10-26 16:33:07.35 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:117) redigo: nil returned
2020-10-26 16:33:09.365 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:93) not found
2020-10-26 16:33:09.366 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:117) redigo: nil returned
2020-10-26 16:33:11.161 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:93) not found
2020-10-26 16:33:11.163 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:117) redigo: nil returned
2020-10-26 16:33:43.307 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:93) not found
2020-10-26 16:33:43.308 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:117) redigo: nil returned
2020-10-26 16:35:21.634 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:93) not found
2020-10-26 16:35:21.635 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:117) redigo: nil returned
2020-10-26 16:38:36.358 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:93) not found
2020-10-26 16:38:36.359 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:117) redigo: nil returned
2020-10-26 16:38:58.892 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:93) not found
2020-10-26 16:38:58.893 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:117) redigo: nil returned
2020-10-26 16:38:59.979 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:93) not found
2020-10-26 16:38:59.98 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:117) redigo: nil returned
2020-10-26 16:39:21.738 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:93) not found
2020-10-26 16:39:21.739 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:117) redigo: nil returned
2020-10-26 16:39:22.687 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:93) not found
2020-10-26 16:39:22.689 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:117) redigo: nil returned
2020-10-26 16:39:45.2 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:93) not found
2020-10-26 16:39:45.202 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:117) redigo: nil returned
2020-10-26 16:39:46.472 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:93) not found
2020-10-26 16:39:46.473 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:117) redigo: nil returned
2020-10-26 16:40:59.253 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:93) not found
2020-10-26 16:40:59.255 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:117) redigo: nil returned
2020-10-26 16:41:24.424 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:93) not found
2020-10-26 16:41:24.425 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:117) redigo: nil returned
2020-10-26 16:41:25.823 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:93) not found
2020-10-26 16:41:25.824 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:117) redigo: nil returned
2020-10-26 16:41:26.891 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:93) not found
2020-10-26 16:41:26.896 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:117) redigo: nil returned
2020-10-26 16:41:50.73 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:93) not found
2020-10-26 16:41:50.732 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:117) redigo: nil returned
2020-10-26 16:42:52.474 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:93) not found
2020-10-26 16:42:52.475 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:117) redigo: nil returned
2020-10-26 16:44:18.754 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:93) not found
2020-10-26 16:44:18.756 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:117) redigo: nil returned
2020-10-26 16:46:38.871 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-26 16:46:38.874 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-26 16:47:00.23 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-26 16:47:00.231 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-26 16:48:23.325 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-26 16:48:23.327 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-26 16:49:55.642 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-26 16:49:55.643 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-26 16:49:55.667 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-26 16:49:55.668 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-26 16:49:57.219 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-26 16:49:57.22 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-26 16:49:57.247 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-26 16:49:57.247 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-26 16:49:57.982 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-26 16:49:57.983 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-26 16:49:58.006 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-26 16:49:58.008 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-26 16:49:58.486 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-26 16:49:58.487 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-26 16:49:58.515 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-26 16:49:58.516 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-26 16:49:59.003 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-26 16:49:59.004 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-26 16:49:59.032 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-26 16:49:59.033 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-26 16:49:59.376 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-26 16:49:59.378 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-26 16:49:59.401 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-26 16:49:59.402 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-26 16:49:59.8 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-26 16:49:59.802 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-26 16:49:59.835 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-26 16:49:59.836 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-26 16:50:00.185 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-26 16:50:00.187 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-26 16:50:00.211 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-26 16:50:00.212 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-26 16:50:00.487 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-26 16:50:00.489 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-26 16:50:00.512 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-26 16:50:00.514 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-26 16:50:06.178 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-26 16:50:06.179 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-26 16:50:06.214 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-26 16:50:06.215 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-26 16:50:24.561 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-26 16:50:24.563 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-26 16:50:24.594 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-26 16:50:24.595 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-26 16:50:28.157 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-26 16:50:28.159 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-26 16:54:24.652 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-26 16:54:24.653 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-26 16:54:25.792 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-26 16:54:25.793 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-26 16:54:26.631 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-26 16:54:26.633 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-26 16:55:07.357 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-26 16:55:07.367 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-26 16:56:34.648 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-26 16:56:34.649 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-26 16:58:25.688 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-26 16:58:25.69 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-26 16:59:34.186 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:96) not found
2020-10-26 16:59:34.188 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:120) redigo: nil returned
2020-10-26 16:59:35.271 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:96) not found
2020-10-26 16:59:35.272 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:120) redigo: nil returned
2020-10-26 16:59:54.915 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:96) not found
2020-10-26 16:59:54.916 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:120) redigo: nil returned
2020-10-26 16:59:56.171 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:96) not found
2020-10-26 16:59:56.173 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:120) redigo: nil returned
2020-10-26 17:00:57.741 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:96) not found
2020-10-26 17:00:57.743 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:120) redigo: nil returned
2020-10-26 17:02:28.654 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-26 17:02:28.655 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-27 11:47:27.914 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-27 11:47:58.981 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-27 11:47:58.982 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-27 16:37:20.988 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:121) redigo: nil returned
2020-10-27 16:45:57.951 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:97) not found
2020-10-27 16:46:02.668 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:97) not found
2020-10-27 16:46:59.411 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:97) not found
2020-10-27 16:48:21.19 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:97) not found
2020-10-27 16:48:58.173 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:97) not found
2020-10-27 17:09:31.848 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:97) not found
2020-10-27 17:09:48.557 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:97) not found
2020-10-27 17:09:48.559 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:121) redigo: nil returned
2020-10-27 17:10:12.826 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:97) not found
2020-10-27 17:16:57.827 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:97) not found
2020-10-27 17:17:24.683 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:97) not found
2020-10-27 17:29:14.366 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:97) not found
2020-10-27 17:29:26.659 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:97) not found
2020-10-27 17:30:04.332 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:98) not found
2020-10-27 17:30:04.334 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:122) redigo: nil returned
2020-10-27 17:31:17.789 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:97) not found
2020-10-27 17:31:17.79 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:121) redigo: nil returned
2020-10-27 17:31:40.736 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:97) not found
2020-10-27 17:31:40.737 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:121) redigo: nil returned
2020-10-27 17:38:43.366 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:97) not found
2020-10-27 17:41:47.843 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:97) not found
2020-10-27 17:42:25.243 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:97) not found
2020-10-27 17:45:49.085 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:97) not found
2020-10-27 17:47:21.555 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:98) not found
2020-10-27 17:47:23.004 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:98) not found
2020-10-27 17:47:38.05 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:98) not found
2020-10-27 17:47:38.895 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:98) not found
2020-10-27 17:51:15.33 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:105) json: cannot unmarshal object into Go value of type []map[string]string
2020-10-27 17:51:16.43 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:105) json: cannot unmarshal object into Go value of type []map[string]string
2020-10-27 17:51:17.133 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:105) json: cannot unmarshal object into Go value of type []map[string]string
2020-10-27 17:51:17.854 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:105) json: cannot unmarshal object into Go value of type []map[string]string
2020-10-27 17:51:30.397 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:105) json: cannot unmarshal object into Go value of type []map[string]string
2020-10-27 17:51:31.261 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:105) json: cannot unmarshal object into Go value of type []map[string]string
2020-10-27 15:43:17.277 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-27 15:43:17.28 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-27 15:43:18.474 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-27 15:43:18.475 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-27 15:43:19.451 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-27 15:43:19.453 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-27 15:43:20.223 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-27 15:43:20.224 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-27 15:43:21.095 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-27 15:43:21.097 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-27 15:43:21.755 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-27 15:43:21.757 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-27 15:43:22.37 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-27 15:43:22.372 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-27 15:43:23.141 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-27 15:43:23.142 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-27 15:43:23.849 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-27 15:43:23.851 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-27 15:43:24.561 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-27 15:43:24.562 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-27 15:43:25.153 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-27 15:43:25.155 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-27 15:43:25.825 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-27 15:43:25.83 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-27 15:43:29.993 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-27 15:43:29.994 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-27 15:43:30.636 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-27 15:43:30.637 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-27 15:43:31.285 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-27 15:43:31.287 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-27 15:43:31.94 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-27 15:43:31.941 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-27 15:43:32.458 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-27 15:43:32.459 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-27 15:43:33.105 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-27 15:43:33.106 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-27 15:43:33.635 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-27 15:43:33.636 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-27 15:43:34.254 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-27 15:43:34.255 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-27 15:43:34.921 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-27 15:43:34.922 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-27 15:43:35.384 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-27 15:43:35.385 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-27 15:43:51.24 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-27 15:43:51.242 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-27 15:45:35.078 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-27 15:45:35.079 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-27 15:45:36.461 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-27 15:45:36.462 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-27 15:46:16.499 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-27 15:46:16.501 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-27 15:46:17.727 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-27 15:46:17.731 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-27 15:47:57.466 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:96) not found
2020-10-27 15:47:57.468 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:120) redigo: nil returned
2020-10-27 15:47:58.561 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:96) not found
2020-10-27 15:47:58.562 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:120) redigo: nil returned
2020-10-27 15:47:59.358 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:96) not found
2020-10-27 15:47:59.36 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:120) redigo: nil returned
2020-10-27 15:48:22.653 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-27 15:48:22.655 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-27 15:48:49.741 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-27 15:48:49.742 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-27 15:49:28.262 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-27 15:49:28.263 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-27 15:51:48.193 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:95) not found
2020-10-27 15:51:48.194 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:119) redigo: nil returned
2020-10-27 15:54:02.387 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:97) not found
2020-10-27 15:54:02.387 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:121) redigo: nil returned
2020-10-28 16:02:02.007 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:125) redigo: nil returned
2020-10-28 16:02:02.013 ERROR (service_ly_common.go:service.(*LyService).GetCoefficient:218) 系数获取异常,供应商:change to String error
2020-10-28 16:03:18.49 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:100) not found
2020-10-28 16:03:18.491 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:125) redigo: nil returned
2020-10-28 16:03:18.497 ERROR (service_ly_common.go:service.(*LyService).GetCoefficient:218) 系数获取异常,供应商:change to String error
2020-10-28 16:04:25.368 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:100) not found
2020-10-28 16:04:25.369 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:125) redigo: nil returned
2020-10-28 16:04:25.376 ERROR (service_ly_common.go:service.(*LyService).GetCoefficient:218) 系数获取异常,供应商:change to String error
2020-10-28 16:04:26.37 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:100) not found
2020-10-28 16:04:26.371 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:125) redigo: nil returned
2020-10-28 16:04:26.377 ERROR (service_ly_common.go:service.(*LyService).GetCoefficient:218) 系数获取异常,供应商:change to String error
2020-10-28 16:04:27.144 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:100) not found
2020-10-28 16:04:27.146 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:125) redigo: nil returned
2020-10-28 16:04:27.151 ERROR (service_ly_common.go:service.(*LyService).GetCoefficient:218) 系数获取异常,供应商:change to String error
2020-10-28 16:04:51.158 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:100) not found
2020-10-28 16:04:51.159 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:125) redigo: nil returned
2020-10-28 16:04:51.165 ERROR (service_ly_common.go:service.(*LyService).GetCoefficient:219) 系数获取异常,供应商:change to String error
2020-10-28 16:04:52.373 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:100) not found
2020-10-28 16:04:52.375 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:125) redigo: nil returned
2020-10-28 16:04:52.38 ERROR (service_ly_common.go:service.(*LyService).GetCoefficient:219) 系数获取异常,供应商:change to String error
2020-10-28 16:05:11.924 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:100) not found
2020-10-28 16:05:11.926 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:125) redigo: nil returned
2020-10-28 16:05:11.932 ERROR (service_ly_common.go:service.(*LyService).GetCoefficient:219) 系数获取异常,供应商:change to String error
2020-10-28 16:05:12.813 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:100) not found
2020-10-28 16:05:12.814 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:125) redigo: nil returned
2020-10-28 16:05:12.82 ERROR (service_ly_common.go:service.(*LyService).GetCoefficient:219) 系数获取异常,供应商:change to String error
2020-10-28 16:05:55.594 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:100) not found
2020-10-28 16:05:55.595 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:125) redigo: nil returned
2020-10-28 16:05:55.607 ERROR (service_ly_common.go:service.(*LyService).GetCoefficient:219) 系数获取异常,供应商:change to String error
2020-10-28 16:06:22.769 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:100) not found
2020-10-28 16:06:22.77 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:125) redigo: nil returned
2020-10-28 16:25:23.731 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:100) not found
2020-10-28 16:25:23.736 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:125) redigo: nil returned
2020-10-28 16:28:29.483 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:98) not found
2020-10-28 16:28:29.485 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:123) redigo: nil returned
2020-10-28 16:28:31.691 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:98) not found
2020-10-28 16:28:31.693 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:123) redigo: nil returned
2020-10-28 16:31:13.252 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:98) not found
2020-10-28 16:31:13.253 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:123) redigo: nil returned
2020-10-28 16:34:07.983 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:98) not found
2020-10-28 16:34:07.985 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:123) redigo: nil returned
2020-10-28 16:35:14.279 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:98) not found
2020-10-28 16:35:14.28 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:123) redigo: nil returned
2020-10-28 16:37:52.635 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:98) not found
2020-10-28 16:37:52.636 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:123) redigo: nil returned
2020-10-28 16:38:29.196 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:98) not found
2020-10-28 16:38:29.197 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:123) redigo: nil returned
2020-10-28 16:38:30.439 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:98) not found
2020-10-28 16:38:30.441 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:123) redigo: nil returned
2020-10-28 16:38:31.403 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:98) not found
2020-10-28 16:38:31.404 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:123) redigo: nil returned
2020-10-28 16:38:31.975 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:98) not found
2020-10-28 16:38:31.977 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:123) redigo: nil returned
2020-10-28 16:39:17.904 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:98) not found
2020-10-28 16:39:17.906 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:123) redigo: nil returned
2020-10-28 16:39:43.202 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:98) not found
2020-10-28 16:39:43.205 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:123) redigo: nil returned
2020-10-28 16:39:44.436 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:98) not found
2020-10-28 16:39:44.437 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:123) redigo: nil returned
2020-10-28 16:39:45.218 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:98) not found
2020-10-28 16:39:45.22 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:123) redigo: nil returned
2020-10-28 16:39:46.007 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:98) not found
2020-10-28 16:39:46.008 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:123) redigo: nil returned
2020-10-28 16:39:47.258 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:98) not found
2020-10-28 16:39:47.26 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:123) redigo: nil returned
2020-10-28 16:39:52.291 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:98) not found
2020-10-28 16:39:52.293 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:123) redigo: nil returned
2020-10-28 16:40:27.908 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:98) not found
2020-10-28 16:40:27.91 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:123) redigo: nil returned
2020-10-28 16:40:29.364 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:98) not found
2020-10-28 16:40:29.365 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:123) redigo: nil returned
2020-10-28 16:41:15.663 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:98) not found
2020-10-28 16:41:15.665 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:123) redigo: nil returned
2020-10-28 16:41:16.497 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:98) not found
2020-10-28 16:41:16.498 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:123) redigo: nil returned
2020-10-28 16:41:47.983 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:98) not found
2020-10-28 16:41:47.985 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:123) redigo: nil returned
2020-10-28 16:41:49.524 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:98) not found
2020-10-28 16:41:49.525 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:123) redigo: nil returned
2020-10-28 16:43:18.201 ERROR (service_ly_common.go:service.(*LyService).GetSpuAttr:98) not found
2020-10-28 16:43:18.203 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:123) redigo: nil returned
2020-10-28 15:58:29.4 ERROR (service_ly_common.go:service.(*LyService).GetScmBrand:125) redigo: nil returned
......@@ -96,7 +96,7 @@ func Synchronization(ctx *gin.Context) {
return true
})
common.Output(ctx, 0, "查询成功", temp)
common.Output(ctx, 0, "success", temp)
}
/*
......
......@@ -2,14 +2,13 @@ package model
import (
"github.com/tidwall/gjson"
"go_sku_server/pkg/common"
)
//联营sku结构体
type LySku struct {
GoodsId int64 `json:"goods_id"`
GoodsId string `json:"goods_id"`
GoodsSn string `json:"goods_sn"`
SpuId string `json:"spu_id"`
SpuId int64 `json:"spu_id"`
BrandId int64 `json:"brand_id"`
BrandName string `json:"brand_name"`
UpdateTime int64 `json:"update_time"`
......@@ -33,26 +32,27 @@ type LySku struct {
Packing string `json:"packing"`
ImagesL string `json:"images_l"`
Pdf string `json:"pdf"`
ClassName string `json:"class_name"`
ClassName1 string `json:"class_name1"`
ClassName2 string `json:"class_name2"`
ClassName3 string `json:"class_name3"`
ErpTax map[string]interface{} `json:"erp_tax"`
ClassName string `json:"class_name,omitempty"`
ClassName1 string `json:"class_name1,omitempty"`
ClassName2 string `json:"class_name2,omitempty"`
ClassName3 string `json:"class_name3,omitempty"`
ErpTax interface{} `json:"erp_tax"`
SupplierName string `json:"supplier_name"`
Attrs []map[string]string `json:"attrs"`
ScmBrand map[string]interface{} `json:"scm_brand"`
Attrs interface{} `json:"attrs"`
ScmBrand interface{} `json:"scm_brand"`
AcType int `json:"ac_type"`
AllowCoupon int `json:"allow_coupon"`
Ratio float64 `json:"ratio"`
Ratio float64 `json:"ratio,omitempty"`
SuppExtendFee interface{} `json:"supp_extend_fee"`
IsBuy int `json:"is_buy"`
//spu信息
ClassID1 int `json:"class_id1"`
ClassID2 int `json:"class_id2"`
ClassID3 int `json:"class_id3"`
ClassID3 int `json:"class_id3,omitempty"`
SpuName string `json:"spu_name"`
SpuBrief string `json:"spu_brief"`
SpuDetail string `json:"spu_detail,omitempty"`
Status int `json:"status"`
Encap string `json:"encap"`
......@@ -60,22 +60,15 @@ type LySku struct {
ActivityEndTime int64 `json:"activity_end_time,omitempty"`
ActivityInfo map[string]interface{} `json:"activity_info,omitempty"`
//系数相关
Coefficient Coefficient `json:"coefficient,omitempty"`
//Spu额外的信息
Coefficient interface{} `json:"coefficient,omitempty"`
}
//为什么不直接映射到结构,而要用gjson,因为redis存的数据结构不一定正常,可能类型不一致
func InitSkuData(sku string) (data LySku) {
goodsId := common.MyInt64(gjson.Get(sku, "goods_id").String())
data.GoodsId = goodsId
goodsSn := gjson.Get(sku, "goods_sn").String()
data.GoodsSn = goodsSn
spuId := gjson.Get(sku, "spu_id").String()
spuId := gjson.Get(sku, "spu_id").Int()
data.SpuId = spuId
updateTime := gjson.Get(sku, "update_time").Int()
......@@ -134,7 +127,7 @@ func InitSkuData(sku string) (data LySku) {
//获取联营商品的阶梯价
func getLadderPrice(ladderPriceStr string) (ladderPrice []LadderPrice) {
ladderPriceArr := gjson.Get(ladderPriceStr, "*").Array()
ladderPriceArr := gjson.Parse(ladderPriceStr).Array()
for _, price := range ladderPriceArr {
ladderPrice = append(ladderPrice, LadderPrice{
Purchases: price.Get("purchases").Int(),
......@@ -144,5 +137,9 @@ func getLadderPrice(ladderPriceStr string) (ladderPrice []LadderPrice) {
CostPrice: price.Get("cost_price").Float(),
})
}
if len(ladderPrice) == 0 {
ladderPrice = []LadderPrice{}
return
}
return
}
......@@ -8,7 +8,8 @@ type Spu struct {
Pdf string `json:"pdf"`
ImagesL string `json:"images_l"`
SpuBrief string `json:"spu_brief"`
SpuDetail string `json:"spu_detail"`
Status int `json:"status"`
UpdateTime int `json:"update_time"`
UpdateTime int64 `json:"update_time"`
Encap string `json:"encap"`
}
\ No newline at end of file
......@@ -9,8 +9,8 @@ import (
)
type Response struct {
ErrCode int `json:"error_code"`
ErrMsg string `json:"err_msg"`
ErrCode int `json:"errcode"`
ErrMsg string `json:"errmsg"`
Data interface{} `json:"data"`
}
......
......@@ -11,7 +11,7 @@ type RedisDatabase struct {
}
//多数据库配置
func BuildRedisConfgs() (RedisDatabaseMap map[string]RedisDatabase) {
func BuildRedisConfigs() (RedisDatabaseMap map[string]RedisDatabase) {
redisReadMaxIdle,_ := Get("default_redis_read.max_idle").Int()
redisReadMaxActive,_ := Get("default_redis_read.max_active").Int()
redisWriteMaxIdle,_ := Get("default_redis_write.max_idle").Int()
......@@ -23,6 +23,12 @@ func BuildRedisConfgs() (RedisDatabaseMap map[string]RedisDatabase) {
MaxIdle: redisReadMaxIdle,
MaxActive: redisReadMaxActive,
},
"default_r": {
Host: Get("default_redis_read.host").String(),
Password: Get("default_redis_read.password").String(),
MaxIdle: redisReadMaxIdle,
MaxActive: redisReadMaxActive,
},
"search_w": {
Host: Get("default_redis_write.host").String(),
Password: Get("default_redis_write.password").String(),
......
......@@ -7,14 +7,13 @@ import (
"time"
)
type ichuntRedis struct {
RedisList map[string]*redis.Pool
}
var ichuntRedis_ = &ichuntRedis{}
func Conn(connection string) (redis.Conn){
func Conn(connection string) redis.Conn {
return ichuntRedis_.RedisList[connection].Get()
}
......@@ -22,11 +21,11 @@ func Conn(connection string) (redis.Conn){
var writeConn, readConn *redis.Pool
func Setup() (err error) {
ichuntRedis_.RedisList = make(map[string]*redis.Pool,0)
RedisDatabaseMap := config.BuildRedisConfgs()
for redisKey,redisConfig := range RedisDatabaseMap{
ichuntRedis_.RedisList[redisKey],err = getConn(redisConfig.Host, redisConfig.Password,redisConfig.MaxIdle,redisConfig.MaxActive)
if err != nil{
ichuntRedis_.RedisList = make(map[string]*redis.Pool, 0)
RedisDatabaseMap := config.BuildRedisConfigs()
for redisKey, redisConfig := range RedisDatabaseMap {
ichuntRedis_.RedisList[redisKey], err = getConn(redisConfig.Host, redisConfig.Password, redisConfig.MaxIdle, redisConfig.MaxActive)
if err != nil {
panic(err)
}
}
......@@ -34,11 +33,11 @@ func Setup() (err error) {
}
//格式化成字符串
func String( a interface{},err error) (string,error) {
return redis.String(a,err)
func String(a interface{}, err error) (string, error) {
return redis.String(a, err)
}
func getConn(writeHost, password string, maxIdle,maxActive int) (pool *redis.Pool, err error) {
func getConn(writeHost, password string, maxIdle, maxActive int) (pool *redis.Pool, err error) {
//maxIdle, _ := config.Get("redis.max_idle").Int()
//maxActive, _ := config.Get("redis.max_active").Int()
pool = &redis.Pool{
......@@ -72,34 +71,36 @@ func getConn(writeHost, password string, maxIdle,maxActive int) (pool *redis.Poo
eg:
redisConn := gredis.Conn("search_r")
skuArr := gredis.HgetPi(&redisConn,"Self_SelfGoods",[]string{"1001","10005"})
*/
func HgetPi(redisCon string,hkey string,targetIds []string) map[string]string {
*/
func HgetPi(redisCon string, hkey string, targetIds []string) map[string]string {
redisConn := Conn(redisCon)
defer redisConn.Close()
skuArr := make(map[string]string,0)
skuArr := make(map[string]string, 0)
if len(targetIds) == 1 {
oneId := targetIds[0]
info,err := String(redisConn.Do("HGET",hkey,oneId))
info, err := String(redisConn.Do("HGET", hkey, oneId))
if err != nil {
fmt.Print(err)
}
if info == "" {
skuArr[oneId] = ""
}else{
} else {
skuArr[oneId] = info
}
return skuArr
}
for _,v := range targetIds{
redisConn.Send("HGet",hkey,v)
for _, v := range targetIds {
redisConn.Send("HGet", hkey, v)
}
redisConn.Flush()
for _,goods_id := range targetIds{
info,_ := redisConn.Receive()
if info == nil{
for _, goods_id := range targetIds {
info, _ := redisConn.Receive()
if info == nil {
skuArr[goods_id] = ""
continue;
continue
}
oneInfo := string(info.([]byte))
skuArr[goods_id] = oneInfo
......@@ -107,7 +108,6 @@ func HgetPi(redisCon string,hkey string,targetIds []string) map[string]string {
return skuArr
}
/*
批量或者单个查询redis数据,统一返回map[string]string
@param hkey string 集合键值,如sku
......@@ -116,19 +116,19 @@ eg:
redisConn := gredis.Conn("search_r")
skuArr := gredis.HgetPi(&redisConn,"Self_SelfGoods",[]string{"1001","10005"})
*/
func HgetPi2(redisCon string,hkey string,targetIds []string) map[string]string {
func HgetPi2(redisCon string, hkey string, targetIds []string) map[string]string {
redisConn := Conn(redisCon)
defer redisConn.Close()
skuArr := make(map[string]string,0)
for _,goods_id := range targetIds{
info,err := String(redisConn.Do("HGET",hkey,goods_id))
skuArr := make(map[string]string, 0)
for _, goods_id := range targetIds {
info, err := String(redisConn.Do("HGET", hkey, goods_id))
if err != nil {
fmt.Print("连接redis错误991:",err)
fmt.Print("连接redis错误991:", err)
}
if info == "" {
skuArr[goods_id] = ""
}else{
} else {
skuArr[goods_id] = info
}
}
......
package service
import (
"fmt"
"github.com/gin-gonic/gin"
"github.com/gomodule/redigo/redis"
"github.com/syyongx/php2go"
......@@ -9,6 +8,7 @@ import (
"go_sku_server/model"
"go_sku_server/pkg/gredis"
"sort"
"strconv"
"sync"
)
......@@ -21,6 +21,8 @@ type Power struct {
Email string `json:"email"`
Member string `json:"member"`
VerifyBlacklist string `json:"verify_blacklist"`
Invoice string `json:"invoice"`
SpecialInvoice string `json:"special_invoice"`
}
/*
......@@ -40,19 +42,21 @@ func (ls *LyService) LyGoodsDetail(ctx *gin.Context, goodsIds []string, goodsRes
Mobile: ctx.Request.FormValue("power[mobile]"),
Email: ctx.Request.FormValue("power[email]"),
Member: ctx.Request.FormValue("power[member]"),
Invoice: ctx.Request.FormValue("power[invoice]"),
SpecialInvoice: ctx.Request.FormValue("power[special_invoice]"),
VerifyBlacklist: ctx.Request.FormValue("power[verify_blacklist]"),
}
//批量获取商品详情
skuArr := gredis.HgetPi("search_r", "sku", goodsIds)
skuArr := gredis.HgetPi("default_r", "sku", goodsIds)
//为了性能着想,这边也先去批量获取spu的信息
spuList := ls.getSpuList(goodsIds)
spuList := ls.getSpuList(skuArr)
for goodsId, skuStr := range skuArr {
//初始化有序map,拼接data 数据
//A := orderedmap.New()
sku := model.InitSkuData(skuStr)
spu := spuList[sku.SpuId]
sku.GoodsId = goodsId
spu := spuList[strconv.Itoa(int(sku.SpuId))]
//读取包装字段的缓存
if sku.SupplierId == 7 {
//sku_raw_map哪里写入(成意写的)
......@@ -112,10 +116,10 @@ func (ls *LyService) LyGoodsDetail(ctx *gin.Context, goodsIds []string, goodsRes
//活动标识
hasActivity := false
//******************************************************************************//
//判断是否有新客价权利
if isNewCustomer == "true" {
//获取新客价
//todo test
sku = ls.GetActivityPrice(sku, "_NewCustomer", power)
if sku.AcType > 0 {
hasActivity = true
......@@ -160,8 +164,8 @@ func (ls *LyService) LyGoodsDetail(ctx *gin.Context, goodsIds []string, goodsRes
//还要处理货期
delivery := ls.GetDelivery(sku.SupplierId, sku.Canal)
sku.CnDeliveryTime = delivery["cn_delivery_time"]
sku.HkDeliveryTime = delivery["hk_delivery_time"]
sku.CnDeliveryTime = delivery["cn_delivery"]
sku.HkDeliveryTime = delivery["hk_delivery"]
}
......@@ -173,12 +177,11 @@ func (ls *LyService) LyGoodsDetail(ctx *gin.Context, goodsIds []string, goodsRes
//判断是否可以购买
sku.IsBuy = ls.GetIsBuy(sku)
//用spuinfo补全信息
//用spuInfo补全信息
sku = ls.CombineSup(sku, spu)
//最后一步,将sku的全部信息放到有序map里面
fmt.Println(hasActivity)
(*goodsRes).Store(goodsId, sku)
//(*goodsRes)[goodsId] = A
......@@ -187,10 +190,15 @@ func (ls *LyService) LyGoodsDetail(ctx *gin.Context, goodsIds []string, goodsRes
return
}
func (ls *LyService) getSpuList(goodsIds []string) (spuList map[string]string) {
redisConn := gredis.Conn("search_r")
func (ls *LyService) getSpuList(skuArr map[string]string) (spuList map[string]string) {
var spuIds []string
for _, skuStr := range skuArr {
spuId := gjson.Get(skuStr, "spu_id").String()
spuIds = append(spuIds, spuId)
}
redisConn := gredis.Conn("default_r")
defer redisConn.Close()
//批量获取spu详情
spuList = gredis.HgetPi("search_r", "spu", goodsIds)
spuList = gredis.HgetPi("default_r", "spu", spuIds)
return
}
......@@ -2,7 +2,9 @@ package service
import (
"encoding/json"
"fmt"
"github.com/gomodule/redigo/redis"
"github.com/iancoleman/orderedmap"
"github.com/ichunt2019/logger"
"github.com/syyongx/php2go"
"github.com/tidwall/gjson"
......@@ -36,30 +38,34 @@ func (ls *LyService) GetGoodsImages(sku model.LySku, spu string) model.LySku {
//获取分类信息
func (ls *LyService) GetGoodsClass(sku model.LySku, spu string) model.LySku {
//仅提供价格和库存
spuClassId1 := gjson.Get(spu, "class_id1").String()
spuClassId2 := gjson.Get(spu, "class_id2").String()
spuClassId3 := gjson.Get(spu, "class_id3").String()
if spuClassId3 != "" {
spuClassId1 := gjson.Get(spu, "class_id1").Int()
spuClassId2 := gjson.Get(spu, "class_id2").Int()
spuClassId3 := gjson.Get(spu, "class_id3").Int()
if spuClassId3 != 0 {
sku.ClassName = ls.GetCacheClass(spuClassId3)
sku.ClassName3 = ls.GetCacheClass(spuClassId3)
sku.ClassName2 = ls.GetCacheClass(spuClassId2)
sku.ClassName1 = ls.GetCacheClass(spuClassId1)
} else {
sku.ClassName = "其"
sku.ClassName = "其"
}
return sku
}
//获取税务信息,对接税务系统
func (ls *LyService) GetErpTax(goodsName, brandName string) map[string]interface{} {
func (ls *LyService) GetErpTax(goodsName, brandName string) interface{} {
redisCon := gredis.Conn("default_r")
defer redisCon.Close()
key := php2go.Md5(strings.ToUpper(goodsName + brandName))
info, _ := redis.String(redisCon.Do("HGET", "tax_customs_info", key))
data := make(map[string]interface{})
data["tariffRate"] = gjson.Get(info, "tax_rate_low")
data["types"] = gjson.Get(info, "supervision_con")
if gjson.Get(info, "tax_rate_low").String() != "" || gjson.Get(info, "supervision_con").Int() > 0 {
data["tariffRate"] = gjson.Get(info, "tax_rate_low").String()
data["types"] = gjson.Get(info, "supervision_con").String()
return data
} else {
return false
}
}
//获取联营供应商的名字
......@@ -67,11 +73,11 @@ func (ls *LyService) GetPoolSupplierName(supplierId int64) (supplierName string)
redisCon := gredis.Conn("default_r")
defer redisCon.Close()
supplier, _ := redis.String(redisCon.Do("HGET", "supplier", supplierId))
return gjson.Get(supplier, "supplier_name").String()
return supplier
}
//从缓存获取分类
func (ls *LyService) GetCacheClass(classId string) string {
func (ls *LyService) GetCacheClass(classId int64) string {
redisCon := gredis.Conn("default_r")
defer redisCon.Close()
className, _ := redis.String(redisCon.Do("HGET", "class", classId))
......@@ -85,30 +91,31 @@ type SpuAttr struct {
}
//获取Spu的属性
func (ls *LyService) GetSpuAttr(spuId string) (attrsResult []map[string]string) {
func (ls *LyService) GetSpuAttr(spuId int64) (attrsResult []interface{}) {
var spuAttr SpuAttr
err := mongo.Conn("default").DB("ichunt").C("spu_attrs").Find(bson.M{"spu_id": spuId}).One(&spuAttr)
if err != nil {
logger.Error("%s", err)
}
attrs := make(map[string]string)
if spuAttr.Attrs != "" {
err = json.Unmarshal([]byte(spuAttr.Attrs), &attrs)
o := orderedmap.New()
err = json.Unmarshal([]byte(spuAttr.Attrs), &o)
if err != nil {
logger.Error("%s", err)
}
}
for key, value := range attrs {
data := make(map[string]string)
data["attr_name"] = key
data["attr_value"] = value
for _, value := range o.Keys() {
data := make(map[string]interface{})
data["attr_name"] = value
data["attr_value"], _ = o.Get(value)
attrsResult = append(attrsResult, data)
}
return
return attrsResult
}
return nil
}
//H获取供应链标准品牌
func (ls *LyService) GetScmBrand(brandId int64) (scmBrand map[string]interface{}) {
func (ls *LyService) GetScmBrand(brandId int64) (res interface{}) {
redisCon := gredis.Conn("default_r")
defer redisCon.Close()
scmBrandId, err := redis.Int(redisCon.Do("HGET", "pool_scm_brand_mapping", brandId))
......@@ -120,12 +127,14 @@ func (ls *LyService) GetScmBrand(brandId int64) (scmBrand map[string]interface{}
if err != nil {
logger.Error("%s", err)
}
scmBrand = make(map[string]interface{})
scmBrand := make(map[string]interface{})
scmBrand["erp_brand_name"] = gjson.Get(scmBrandData, "erp_brand_name").String()
scmBrand["erp_brand_id"] = gjson.Get(scmBrandData, "erp_brand_id").Int()
scmBrand["scm_brand_id"] = scmBrandId
scmBrand["erp_brand_id"] = gjson.Get(scmBrandData, "erp_brand_id").String()
scmBrand["scm_brand_id"] = common.ToString(scmBrandId)
return scmBrand
} else {
return []string{}
}
return
}
type ExtendFee struct {
......@@ -145,7 +154,7 @@ func (ls *LyService) GetExtendFee(supplierId int64, canal string) interface{} {
defer redisCon.Close()
if supplierId == 17 {
//为什么专卖的redis键会不一样,专卖的附加费管理在供应商系统,其它的在基石
value, _ := redis.String(redisCon.Do("HGET", "supp_extend_fee", "17"+canal))
value, _ := redis.String(redisCon.Do("HGET", "supp_extend_fee", "17."+canal))
//专卖的存了两种形式的数据,真是搞人心态
if strings.Contains(value, "cn") {
var extendFee ExtendFee
......@@ -203,7 +212,7 @@ func (ls *LyService) GetCoefficient(sku model.LySku) model.LySku {
redisCon := gredis.Conn("default_r")
defer redisCon.Close()
ratio, _ := redis.String(redisCon.Do("HGET", "pool_supplier_ratio", sku.SupplierId))
if ratio != "" {
if ratio == "" {
logger.Error("%s", "系数获取异常,供应商:"+common.ToString(sku.SupplierId))
return sku
}
......@@ -319,11 +328,11 @@ func (ls *LyService) GetCoefficient(sku model.LySku) model.LySku {
//获取供应商货期
func (ls *LyService) GetDelivery(supplierId int64, canal string) (delivery map[string]string) {
delivery = make(map[string]string)
//info := make(map[string]string)
redisCon := gredis.Conn("default_r")
defer redisCon.Close()
if canal != "" {
supplierRatio, _ := redis.String(redisCon.Do("HGET", "supp_ratio", canal))
fmt.Println(supplierRatio)
if supplierRatio != "" {
delivery["cn_delivery"] = gjson.Get(supplierRatio, "cn_delivery_time").String()
delivery["hk_delivery"] = gjson.Get(supplierRatio, "us_delivery_time").String()
......@@ -366,10 +375,12 @@ func (ls *LyService) CombineSup(sku model.LySku, spuStr string) model.LySku {
if err != nil {
return sku
}
sku.UpdateTime = spu.UpdateTime
sku.ClassID1 = spu.ClassID1
sku.ClassID2 = spu.ClassID2
sku.SpuName = spu.SpuName
sku.SpuBrief = spu.SpuBrief
sku.SpuDetail = spu.SpuDetail
sku.Status = spu.Status
sku.Encap = spu.Encap
return sku
......
......@@ -5,8 +5,8 @@ import (
"github.com/syyongx/php2go"
"github.com/tidwall/gjson"
"go_sku_server/model"
"go_sku_server/pkg/common"
"go_sku_server/pkg/gredis"
"strconv"
"strings"
"time"
)
......@@ -27,7 +27,7 @@ func (ls *LyService) GetActivityPrice(sku model.LySku, suffix string, power Powe
//比如有 Self_ActivityPrice_2_Discount,Self_ActivityPrice_1_NewCustomer
redisCon := gredis.Conn("default_r")
defer redisCon.Close()
supplierIdStr := common.ToString(sku.SupplierId)
supplierIdStr := strconv.Itoa(int(sku.SupplierId))
activityInfo, _ := redis.String(redisCon.Do("HGET", "Self_ActivityPrice_"+supplierIdStr+suffix))
//找不到对应的活动价格信息,就直接返回空
if activityInfo == "" {
......@@ -83,8 +83,7 @@ func (ls *LyService) GetActivityPrice(sku model.LySku, suffix string, power Powe
if activityGoodsId != "" {
//为了用字符串匹配
activityGoodsId = activityGoodsId + ","
goodsIdStr := common.ToString(sku.GoodsId)
if !strings.Contains(activityGoodsId, goodsIdStr) {
if !strings.Contains(activityGoodsId, sku.GoodsId) {
hasActivity = false
}
} else {
......@@ -162,22 +161,26 @@ func (ls *LyService) GetActivityPrice(sku model.LySku, suffix string, power Powe
activityType := gjson.Get(activityInfo, "activity_type").Int()
if suffix == "" && blacklistType != 0 && hasActivity && activityId != "" && activityType == 2 &&
power.VerifyBlacklist == "true" {
//_1 是用来区分活动价和折扣价,活动和折扣价(折扣价有黑名单,活动价没有黑名单)
////_1 是用来区分活动价和折扣价,活动和折扣价(折扣价有黑名单,活动价没有黑名单)
//blackList, _ := redis.String(redisCon.Do("HGET", "activity_roster", activityId+"_1"))
//拼接是为了方便判断是否包含在黑名单内
////拼接是为了方便判断是否包含在黑名单内
//blackList = "," + blackList + ","
//blacklistTypeList := make(map[int]string)
//blacklistTypeList = map[int]string{
// 1: "nvoice",
// 1: "invoice",
// 2: "special_invoice",
// 3: "user_id",
// 4: "mobile",
// 5: "email",
//}
//遍历黑名单类型
//黑名单就不显示折扣价吗,黑名单只针对折扣价
//如果在黑名单内
////遍历黑名单类型
////黑名单就不显示折扣价吗,黑名单只针对折扣价
//activityBlackListTypes := gjson.Get(activityInfo, "blacklist_type").Array()
//for _, value := range activityBlackListTypes {
// //验证是否有对应的黑名单类型
// blackListType := blacklistTypeList[int(value.Int())]
//
//}
}
}
......@@ -259,5 +262,5 @@ func (a LadderPriceSorter) Swap(i, j int) {
}
func (a LadderPriceSorter) Less(i, j int) bool {
return a[j].Purchases < a[i].Purchases
return a[j].Purchases > a[i].Purchases
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment