Commit ea7a0f21 by 王昆

gsb

parent 62251080
......@@ -40,6 +40,13 @@ class DeliverCtl extends CtlBase {
async save(pobj, pobj2, req) {
try {
if(!pobj.ucname) {
return system.getResult(null, "请填写用户名");
}
if(!(/^1\d{10}$/.test(phone))) {
return system.getResult(null, "用户名必须为手机号");
}
return await this.deliverSve.save(pobj);
} catch (e) {
console.log(e);
......
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