xiongzhu 8 tháng trước cách đây
mục cha
commit
d7894069b4
1 tập tin đã thay đổi với 4 bổ sung4 xóa
  1. 4 4
      src/device/device.service.ts

+ 4 - 4
src/device/device.service.ts

@@ -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] })
         }
     }