订单GoodsOrder添加字段InvoiceTitle,InvoiceTaxerID和InvoiceEmail表示开发票信息

GetOrders添加可选参数mustInvoice表示只查询要求开发票的订单
This commit is contained in:
gazebo
2019-10-21 17:44:06 +08:00
parent fceab5848e
commit aa6d673936
9 changed files with 72 additions and 0 deletions

View File

@@ -259,3 +259,24 @@ func TestCalcStageValue(t *testing.T) {
}
}
}
func TestGetOneEmailFromStr(t *testing.T) {
for _, v := range [][]string{
[]string{
"test@kk.com",
"中人国test@kk.com",
},
[]string{
"",
"91b8dcb5cb6b462bc96078b7210470b7.jpg",
},
[]string{
"test@kk.com",
"中人国test@kk.com2342",
},
} {
if str := GetOneEmailFromStr(v[1]); str != v[0] {
t.Errorf("%s failed, result:%s, expect:%s", v[1], str, v[0])
}
}
}