|
@@ -249,7 +249,11 @@ export class ProfileComponent implements OnInit {
|
|
|
// 根据点击查看记录半小时内是否有此浏览记录
|
|
|
async judgeIsBrowse() {
|
|
|
let ProfileRadar = new Parse.Query('ProfileRadar');
|
|
|
- ProfileRadar.equalTo('company', this.aiChatServ.company);
|
|
|
+ ProfileRadar.equalTo('company', {
|
|
|
+ __type: 'Pointer',
|
|
|
+ className: 'Company',
|
|
|
+ objectId: this.aiChatServ.company,
|
|
|
+ });
|
|
|
ProfileRadar.equalTo('fromUser', Parse.User.current()?.id!);
|
|
|
ProfileRadar.equalTo('toUser', this.user?.id,);
|
|
|
ProfileRadar.greaterThanOrEqualTo(
|
|
@@ -327,7 +331,11 @@ export class ProfileComponent implements OnInit {
|
|
|
this.friends = new obj();
|
|
|
this.friends?.set('user', this.currentUser?.toPointer());
|
|
|
this.friends?.set('friend', this.user?.toPointer());
|
|
|
- this.friends?.set('company', this.aiChatServ.company);
|
|
|
+ this.friends?.set('company', {
|
|
|
+ __type: 'Pointer',
|
|
|
+ className: 'Company',
|
|
|
+ objectId: this.aiChatServ.company,
|
|
|
+ });
|
|
|
this.friends?.set('channel', this.user?.id + '-' + this.currentUser?.id);
|
|
|
await this.friends?.save();
|
|
|
const toast = await this.toastController.create({
|