Commit fe7ebe5b by Sxy

fix: 分配

parent cfe52b92
......@@ -129,7 +129,7 @@ class DeliverybillCtl extends CtlBase {
*/
async distributionPerson(pobj, qobj, req) {
try {
if (!Array.isArray(pobj.numbers) && pobj.numbers.length > 0) {
if (!Array.isArray(pobj.numbers) || pobj.numbers.length <= 0) {
throw new Error("numbers 为数组 且 不能为空");
}
if (!pobj.nickName) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment