|
@@ -104,7 +104,7 @@ class UserService extends CrudService {
|
|
|
// 其他用户绑定
|
|
|
async userbind(data) {
|
|
|
const { openid, uid, type } = data;
|
|
|
- assert(openid && uid && type, '缺少部分信息项');
|
|
|
+ assert(openid && uid, '缺少部分信息项');
|
|
|
const user = await this.model.findById(uid);
|
|
|
if (!user) {
|
|
|
throw new BusinessError(ErrorCode.USER_NOT_EXIST);
|