微商城订单自动修改门店价格时,电话号码匹配时,也要查分组

多于一个门店匹配时,只处理第一个,且不报错
This commit is contained in:
gazebo
2019-10-31 16:38:36 +08:00
parent 36a505fb32
commit 85f3c9009e
2 changed files with 51 additions and 2 deletions

View File

@@ -0,0 +1,24 @@
package cs
import (
"testing"
"git.rosy.net.cn/baseapi/utils"
"git.rosy.net.cn/jx-callback/business/model/dao"
"git.rosy.net.cn/jx-callback/globals/api2"
"git.rosy.net.cn/jx-callback/globals/testinit"
)
func init() {
testinit.Init()
api2.Init()
}
func TestGetStoreList4Mobile(t *testing.T) {
storeList, err := GetStoreList4Mobile(dao.GetDB(), []string{"18180948107"})
if err != nil {
t.Fatal(err)
}
t.Log(utils.Format4Output(storeList, false))
t.Log(len(storeList))
}