Explorar el Código

去除算法停机(提现模式)

lijin hace 6 meses
padre
commit
71db337f18

+ 2 - 1
device-api-service/src/main/java/com/xy/service/factory/device/impl/open/OpenDeviceFactoryImpl.java

@@ -155,7 +155,8 @@ public class OpenDeviceFactoryImpl implements DeviceFactory {
             return R.fail("机器已激活");
             return R.fail("机器已激活");
         }
         }
         //提现模式商户无需算法费
         //提现模式商户无需算法费
-        Boolean isDraw = mercService.isDraw(new MercDto.IsDraw().setMercId(deviceIds.get(0))).getData();
+        DeviceInfo deviceInfo = deviceInfoService.getById(deviceIds.get(0));
+        Boolean isDraw = mercService.isDraw(new MercDto.IsDraw().setMercId(deviceInfo.getMercId())).getData();
         if (isDraw) {
         if (isDraw) {
             active.setIsDeviceAlgorithmCharging(false);
             active.setIsDeviceAlgorithmCharging(false);
         }
         }