|
|
|
@ -14,6 +14,7 @@ import com.example.demo.service.coin.ConsumeService; |
|
|
|
import com.example.demo.service.coin.MarketService; |
|
|
|
import com.github.pagehelper.PageHelper; |
|
|
|
import com.github.pagehelper.PageInfo; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
@ -35,7 +36,7 @@ import java.util.UUID; |
|
|
|
* @create: 2025−06-23 13:58 |
|
|
|
* @Version 1.0 |
|
|
|
**/ |
|
|
|
|
|
|
|
@Slf4j |
|
|
|
@Service |
|
|
|
public class ConsumeServiceImpl implements ConsumeService { |
|
|
|
|
|
|
|
@ -169,6 +170,7 @@ public class ConsumeServiceImpl implements ConsumeService { |
|
|
|
userGoldRecord.getRemark(), ((double) userGoldRecord.getPermanentGold() / 100), consumeUser.getAdminName(), userGoldRecord.getGoodsName()); |
|
|
|
//返回状态1加成功2减成功其他失败 -5 金币不足 -6 类型错误 -7签名错误 |
|
|
|
if(!result.equals("2\r\n")){ |
|
|
|
log.error("减金币失败,数据未进erp,返回状态:" + result); |
|
|
|
return Result.error("减金币失败,数据未进erp"); |
|
|
|
} |
|
|
|
} |
|
|
|
|