liuyu %!s(int64=4) %!d(string=hai) anos
pai
achega
e824516b9f
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      app/service/roomuser.js

+ 1 - 0
app/service/roomuser.js

@@ -84,6 +84,7 @@ class RoomuserService extends CrudService {
     const { name, phone, openid } = data;
     assert(name, '用户名不能为空');
     assert(phone, '电话号码不能为空');
+    assert(openid, '微信openid不能为空');
     const has_phone = await this.model.findOne({ phone });
     if (has_phone) {
       throw new BusinessError('此手机号已被注册,请更换手机号');