美团配送cookie取消

This commit is contained in:
suyl
2020-05-31 10:29:34 +08:00
parent d29d80b808
commit 6c600ace7e
3 changed files with 25 additions and 14 deletions

View File

@@ -1,6 +1,8 @@
package jdapi
import (
"fmt"
"regexp"
"testing"
"time"
@@ -151,3 +153,14 @@ func TestUpdateStoreFreightConfigNew(t *testing.T) {
t.Fatal(err)
}
}
func TestAA(t *testing.T) {
str := "您的快件正在派送中请您准备签收快递员赵磊联系电话18884041675"
regexpCnameAndCmobile2 := regexp.MustCompile(`(快递员:(.*),联系电话:(.*)`)
result := regexpCnameAndCmobile2.FindAllStringSubmatch(str, -1)
if len(result) > 0 {
cName := result[0][1]
cMobile := result[0][2]
fmt.Println(cName, cMobile)
}
}