|
@@ -83,17 +83,17 @@ func PCS_task() {
|
|
|
|
|
|
//返回内存中列表也的数据,只获取首页,其他页面访问量暂时不多
|
|
|
func PCS_list(page_type string) interface{} {
|
|
|
- var _page_type = page_type
|
|
|
- //如果page_type为空,则是获取非拟建数据。
|
|
|
- if page_type == "" {
|
|
|
- _page_type = "page_index"
|
|
|
- }
|
|
|
- PCSLock.Lock()
|
|
|
- defer PCSLock.Unlock()
|
|
|
- if PCS_index[_page_type] == nil {
|
|
|
- PCS_index[_page_type] = Newbids(page_type)[0]
|
|
|
- }
|
|
|
- return PCS_index[_page_type]
|
|
|
+ /*var _page_type = page_type
|
|
|
+ //如果page_type为空,则是获取非拟建数据。
|
|
|
+ if page_type == "" {
|
|
|
+ _page_type = "page_index"
|
|
|
+ }
|
|
|
+ PCSLock.Lock()
|
|
|
+ defer PCSLock.Unlock()
|
|
|
+ if PCS_index[_page_type] == nil {
|
|
|
+ PCS_index[_page_type] = Newbids(page_type)[0]
|
|
|
+ }*/
|
|
|
+ return Newbids(page_type)[0]
|
|
|
}
|
|
|
|
|
|
//
|