|
@@ -174,17 +174,17 @@ export class CertificationComponent implements OnInit {
|
|
|
|
|
|
async anthProfile(sex?: string, city?: string) {
|
|
|
let user = Parse.User.current();
|
|
|
- let query = new Parse.Query('Profile');
|
|
|
- query.equalTo('idcard', this.idCard);
|
|
|
- query.equalTo('company', this.company);
|
|
|
- query.notEqualTo('isDeleted', true);
|
|
|
- query.notEqualTo('user', Parse.User.current()?.id);
|
|
|
- let res = await query.first();
|
|
|
- if (res && res.id) {
|
|
|
- this.loading.dismiss();
|
|
|
- await this.presentToast('认证失败,该身份已被认证', 1500, 'danger');
|
|
|
- return;
|
|
|
- }
|
|
|
+ // let query = new Parse.Query('Profile');
|
|
|
+ // query.equalTo('idcard', this.idCard);
|
|
|
+ // query.equalTo('company', this.company);
|
|
|
+ // query.notEqualTo('isDeleted', true);
|
|
|
+ // query.notEqualTo('user', Parse.User.current()?.id);
|
|
|
+ // let res = await query.first();
|
|
|
+ // if (res && res.id) {
|
|
|
+ // this.loading.dismiss();
|
|
|
+ // await this.presentToast('认证失败,该身份已被认证', 1500, 'danger');
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
user?.set('sex', sex);
|
|
|
user?.set('idcard', this.idCard);
|
|
|
user?.set('name', this.name);
|
|
@@ -234,7 +234,11 @@ export class CertificationComponent implements OnInit {
|
|
|
this.presentAlert('提交成功,等待审核',true);
|
|
|
}
|
|
|
}
|
|
|
- Parse.User.current()?.set('agentLevel', '2fzw2QMceW');
|
|
|
+ Parse.User.current()?.set('agentLevel', {
|
|
|
+ __type: 'Pointer',
|
|
|
+ className: 'UserAgentLevel',
|
|
|
+ objectId: '2fzw2QMceW',
|
|
|
+ });
|
|
|
await Parse.User.current()?.save();
|
|
|
}
|
|
|
|