订单GoodsOrder添加字段InvoiceTitle,InvoiceTaxerID和InvoiceEmail表示开发票信息
GetOrders添加可选参数mustInvoice表示只查询要求开发票的订单
This commit is contained in:
@@ -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])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user