|
|
@@ -157,8 +157,8 @@ export class DeviceService implements OnModuleInit {
|
|
|
for (let device of devices) {
|
|
|
Object.assign(device, partialEntity)
|
|
|
if (partialEntity.pinCountry && !partialEntity.clashProfile) {
|
|
|
- const profiles = await this.ipmoyuProvider.genProfiles(device.pinCountry, 1)
|
|
|
- device.clashProfile = profiles[0]
|
|
|
+ // const profiles = await this.ipmoyuProvider.genProfiles(device.pinCountry, 1)
|
|
|
+ // device.clashProfile = profiles[0]
|
|
|
} else if (device.pinCountry === '') {
|
|
|
device.clashProfile = ''
|
|
|
}
|
|
|
@@ -199,8 +199,8 @@ export class DeviceService implements OnModuleInit {
|
|
|
async changeProfile(id: string) {
|
|
|
const device = await this.deviceRepository.findOneBy({ id })
|
|
|
if (device && device.pinCountry) {
|
|
|
- const profiles = await this.ipmoyuProvider.genProfiles(device.pinCountry, 1)
|
|
|
- await this.deviceRepository.update(id, { clashProfile: profiles[0] })
|
|
|
+ // const profiles = await this.ipmoyuProvider.genProfiles(device.pinCountry, 1)
|
|
|
+ // await this.deviceRepository.update(id, { clashProfile: profiles[0] })
|
|
|
}
|
|
|
}
|
|
|
|