|
@@ -54,6 +54,7 @@ class CardService extends CrudService {
|
|
|
async create(data) {
|
|
|
// 先创建用户
|
|
|
// 1,检查手机号是否存在
|
|
|
+ console.log(moment().format('YYYY-MM-DD HH:mm:ss'));
|
|
|
const { password, mobile, set, r_mobile } = data;
|
|
|
const is_exists = await this.model.count({ mobile });
|
|
|
if (is_exists) { throw new BusinessError(ErrorCode.DATA_EXISTED, '手机号已存在'); }
|