美团配送cookie取消
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user