|
@@ -19,13 +19,13 @@ class Achieve_applyService extends CrudService {
|
|
|
const { user_id, basic } = body;
|
|
|
let res;
|
|
|
if (!user_id) {
|
|
|
- const { phone, email, contacts, addr } = basic;
|
|
|
+ const { apply_personal, apply_phone, email, addr } = basic;
|
|
|
// 拿手机号去个人里找
|
|
|
- const users = await this.httpUtil.cget('/users/personal', 'live', { phone });
|
|
|
+ const users = await this.httpUtil.cget('/users/personal', 'live', { phone: apply_phone });
|
|
|
let user;
|
|
|
if (users.length <= 0) {
|
|
|
// 该手机号没有用户使用,创建
|
|
|
- const personalData = { name: contacts, phone, email, addr };
|
|
|
+ const personalData = { name: apply_personal, phone: apply_phone, email, addr };
|
|
|
personalData.password = '123456';
|
|
|
personalData.code = 'CGPJXTYW';
|
|
|
personalData.status = '1';
|