|
@@ -691,9 +691,16 @@ static void TcpDataInfoAssembleSend()
|
|
|
OtherMsgToTcpInfo.OtherInfo.RentalStartTime[5] = AppDataInfo.RentalStartTime[5];
|
|
|
INT16 RetalDays = 0;
|
|
|
INT16 ExpiryDays = 0;
|
|
|
- RetalDays = day_diff(AppDataInfo.RentalStartTime, AppDataInfo.ExpiryTimeArray);
|
|
|
- ExpiryDays = day_diff(AppDataInfo.ExpiryTimeArray, OtherMsgToTcpInfo.OtherInfo.msgCollectionTimeBTC);
|
|
|
- printf("%d,%d\n", RetalDays, ExpiryDays);
|
|
|
+ if (AppDataInfo.RentalType == 2)
|
|
|
+ {
|
|
|
+ RetalDays = day_diff(AppDataInfo.RentalStartTime, AppDataInfo.ExpiryTimeArray);
|
|
|
+ ExpiryDays = day_diff(AppDataInfo.ExpiryTimeArray, OtherMsgToTcpInfo.OtherInfo.msgCollectionTimeBTC);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ RetalDays = 0;
|
|
|
+ ExpiryDays = 0;
|
|
|
+ }
|
|
|
OtherMsgToTcpInfo.OtherInfo.RentalDays[0] = RetalDays >> 8;
|
|
|
OtherMsgToTcpInfo.OtherInfo.RentalDays[1] = RetalDays;
|
|
|
OtherMsgToTcpInfo.OtherInfo.ExpiryDays[0] = ExpiryDays >> 8;
|