forked from golang/hotime
This commit is contained in:
parent
4057279471
commit
a5895af113
28
.idea/workspace.xml
generated
28
.idea/workspace.xml
generated
@ -4,12 +4,8 @@
|
||||
<bookmark url="file://$PROJECT_DIR$/var.go" line="12" />
|
||||
</component>
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="03ed5703-81a1-441b-849c-c426276586b7" name="Default" comment="">
|
||||
<change beforePath="$PROJECT_DIR$/.idea/goLibraries.xml" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/.idea/misc.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/misc.xml" afterDir="false" />
|
||||
<list default="true" id="03ed5703-81a1-441b-849c-c426276586b7" name="Default" comment="ContentType更新">
|
||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/application.go" beforeDir="false" afterPath="$PROJECT_DIR$/application.go" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/mime.go" beforeDir="false" afterPath="$PROJECT_DIR$/mime.go" afterDir="false" />
|
||||
</list>
|
||||
<ignored path=".idea/dataSources.local.xml" />
|
||||
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
||||
@ -25,6 +21,7 @@
|
||||
<session id="913453863">
|
||||
<usages-collector id="statistics.lifecycle.project">
|
||||
<counts>
|
||||
<entry key="project.closed" value="1" />
|
||||
<entry key="project.open.time.1" value="1" />
|
||||
<entry key="project.opened" value="1" />
|
||||
</counts>
|
||||
@ -42,11 +39,13 @@
|
||||
<usages-collector id="statistics.file.extensions.edit">
|
||||
<counts>
|
||||
<entry key="go" value="13" />
|
||||
<entry key="txt" value="18" />
|
||||
</counts>
|
||||
</usages-collector>
|
||||
<usages-collector id="statistics.file.types.edit">
|
||||
<counts>
|
||||
<entry key="Go" value="13" />
|
||||
<entry key="PLAIN_TEXT" value="18" />
|
||||
</counts>
|
||||
</usages-collector>
|
||||
</session>
|
||||
@ -282,7 +281,7 @@
|
||||
<property name="GO_FMT" value="false" />
|
||||
<property name="WebServerToolWindowFactoryState" value="false" />
|
||||
<property name="aspect.path.notification.shown" value="true" />
|
||||
<property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1542123464691" />
|
||||
<property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1542123480330" />
|
||||
<property name="configurable.Global.GOPATH.is.expanded" value="true" />
|
||||
<property name="configurable.Module.GOPATH.is.expanded" value="false" />
|
||||
<property name="configurable.Project.GOPATH.is.expanded" value="true" />
|
||||
@ -449,7 +448,7 @@
|
||||
<workItem from="1523384832228" duration="740000" />
|
||||
<workItem from="1523396302828" duration="1154000" />
|
||||
<workItem from="1523450416943" duration="1452000" />
|
||||
<workItem from="1542122907256" duration="357000" />
|
||||
<workItem from="1542122907256" duration="594000" />
|
||||
</task>
|
||||
<task id="LOCAL-00001">
|
||||
<created>1500458878821</created>
|
||||
@ -675,11 +674,18 @@
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1523304665400</updated>
|
||||
</task>
|
||||
<option name="localTasksCounter" value="33" />
|
||||
<task id="LOCAL-00033" summary="ContentType更新">
|
||||
<created>1542123502500</created>
|
||||
<option name="number" value="00033" />
|
||||
<option name="presentableId" value="LOCAL-00033" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1542123502500</updated>
|
||||
</task>
|
||||
<option name="localTasksCounter" value="34" />
|
||||
<servers />
|
||||
</component>
|
||||
<component name="TimeTrackingManager">
|
||||
<option name="totallyTimeSpent" value="111450000" />
|
||||
<option name="totallyTimeSpent" value="111687000" />
|
||||
</component>
|
||||
<component name="TodoView">
|
||||
<todo-panel id="selected-file">
|
||||
@ -692,6 +698,7 @@
|
||||
</component>
|
||||
<component name="ToolWindowManager">
|
||||
<frame x="-8" y="-8" width="1936" height="1066" extended-state="6" />
|
||||
<editor active="true" />
|
||||
<layout>
|
||||
<window_info id="UI Designer" />
|
||||
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.23720682" />
|
||||
@ -738,7 +745,8 @@
|
||||
<MESSAGE value="管理端初步" />
|
||||
<MESSAGE value="工具" />
|
||||
<MESSAGE value="数据库缓存更新" />
|
||||
<option name="LAST_COMMIT_MESSAGE" value="数据库缓存更新" />
|
||||
<MESSAGE value="ContentType更新" />
|
||||
<option name="LAST_COMMIT_MESSAGE" value="ContentType更新" />
|
||||
</component>
|
||||
<component name="editorHistoryManager">
|
||||
<entry file="file://$PROJECT_DIR$/cache_redis.go" />
|
||||
|
@ -266,6 +266,11 @@ func (this *Application) handler(w http.ResponseWriter, req *http.Request) {
|
||||
//header默认设置
|
||||
header := w.Header()
|
||||
header.Set("Content-Type", "text/html; charset=utf-8")
|
||||
|
||||
//url去掉参数并序列化
|
||||
context.HandlerStr, context.RouterString = this.urlSer(context.HandlerStr)
|
||||
|
||||
|
||||
//访问拦截true继续false暂停
|
||||
connectListenerLen := len(this.connectListener)
|
||||
if connectListenerLen != 0 {
|
||||
@ -278,8 +283,7 @@ func (this *Application) handler(w http.ResponseWriter, req *http.Request) {
|
||||
}
|
||||
}
|
||||
}
|
||||
o, s = this.urlSer(context.HandlerStr)
|
||||
context.RouterString = s
|
||||
|
||||
//接口服务
|
||||
//if len(s) == 3 {
|
||||
// //如果满足规则则路由到对应控制器去
|
||||
|
Loading…
Reference in New Issue
Block a user