mirror of
https://shylinux.com/x/icebergs
synced 2025-06-26 02:17:30 +08:00
add some
This commit is contained in:
parent
7d26b0afb0
commit
4bb96d905d
@ -198,7 +198,6 @@ func _serve_handle(key string, cmd *ice.Command, m *ice.Message, w http.Response
|
||||
})
|
||||
UserHost(m)
|
||||
for k, v := range m.R.Header {
|
||||
// m.Info("what %v %v", k, v)
|
||||
kit.If(strings.HasPrefix(k, "Wechatpay"), func() { m.Option(k, v) })
|
||||
}
|
||||
m.W.Header().Add(strings.ReplaceAll(ice.LOG_TRACEID, ".", "-"), m.Option(ice.LOG_TRACEID))
|
||||
|
@ -115,7 +115,6 @@ func _spide_body(m *ice.Message, method string, arg ...string) (io.Reader, ice.M
|
||||
case SPIDE_FORM:
|
||||
// arg = kit.Simple(arg, func(v string) string { return url.QueryEscape(v) })
|
||||
head[html.ContentType], body = html.ApplicationForm, bytes.NewBufferString(kit.JoinQuery(arg[1:]...))
|
||||
m.Info("debug what %v", kit.JoinQuery(arg[1:]...))
|
||||
case SPIDE_PART:
|
||||
head[html.ContentType], body = _spide_part(m, arg...)
|
||||
case SPIDE_FILE:
|
||||
|
3
logs.go
3
logs.go
@ -125,9 +125,6 @@ func (m *Message) Warn(err Any, arg ...Any) bool {
|
||||
str, meta := m.join(arg...)
|
||||
if m.log(LOG_WARN, str, meta...); len(arg) > 0 {
|
||||
p := path.Join(kit.Slice(strings.Split(logs.FileLines(-2), "/"), -2)...)
|
||||
m.Info("what %v", strings.Split(logs.FileLines(-2), "/"))
|
||||
m.Info("what %v", kit.Slice(strings.Split(logs.FileLines(-2), "/"), -2))
|
||||
m.Info("what %v", p)
|
||||
m.Option(MSG_TITLE, kit.JoinWord(kit.Keys(m.Option(MSG_USERPOD), m.CommandKey(), m.ActionKey()), p))
|
||||
m.error(arg...)
|
||||
kit.If(map[string]int{
|
||||
|
Loading…
x
Reference in New Issue
Block a user