1
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
package tao_vegetable
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
"strings"
|
||||
"testing"
|
||||
)
|
||||
|
||||
@@ -12,3 +14,14 @@ func TestQueryToken(t *testing.T) {
|
||||
globals.SugarLogger.Debugf("data := %s", utils.Format4Output(data, false))
|
||||
globals.SugarLogger.Debugf("err := %s", utils.Format4Output(err, false))
|
||||
}
|
||||
|
||||
func TestReplaceString(t *testing.T) {
|
||||
aa := `{
|
||||
"store_id": "CRF003",
|
||||
"order_status": "PAID",
|
||||
"merchant_code": "xxx",
|
||||
"biz_order_id": 123456
|
||||
}`
|
||||
dd := strings.ReplaceAll(strings.ReplaceAll(aa, "\n", ""), " ", "")
|
||||
fmt.Println(dd)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user