From bacfa95eed96d05a275b0e87f69d00bc19e0c7cf Mon Sep 17 00:00:00 2001 From: shy Date: Thu, 21 Mar 2024 01:55:58 +0800 Subject: [PATCH] add aliyun --- option.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/option.go b/option.go index 912b1234..22816b39 100644 --- a/option.go +++ b/option.go @@ -99,7 +99,11 @@ func (m *Message) StatusTimeCountStats(field ...string) *Message { return m.StatusTimeCount(m.TableStats(field...)) } func (m *Message) StatusTimeCountTotal(arg ...Any) *Message { - return m.StatusTimeCount(append([]Any{kit.MDB_TOTAL}, arg...)) + if len(arg) > 0 && arg[0] != nil { + return m.StatusTimeCount(append([]Any{kit.MDB_TOTAL}, arg...)) + } else { + return m + } } func (m *Message) Process(cmd string, arg ...Any) *Message { if len(arg) == 0 {