| | |
| | | import com.yeshi.buwan.domain.vip.OrderRecord; |
| | | import com.yeshi.buwan.domain.vip.OrderType; |
| | | import com.yeshi.buwan.dto.order.PPTVVideoPrice; |
| | | import com.yeshi.buwan.pptv.PPTVApiUtil; |
| | | import com.yeshi.buwan.pptv.PPTVUtil; |
| | | import com.yeshi.buwan.pptv.entity.PPTVSeries; |
| | | import com.yeshi.buwan.service.inter.LoginUserService; |
| | | import com.yeshi.buwan.service.inter.juhe.PPTVService; |
| | |
| | | import com.yeshi.buwan.service.inter.vip.VIPService; |
| | | import com.yeshi.buwan.service.manager.GoldCornManager; |
| | | import com.yeshi.buwan.util.JsonUtilV2; |
| | | import com.yeshi.buwan.util.ThreadUtil; |
| | | import com.yeshi.buwan.vo.AcceptData; |
| | | import net.sf.json.JSONObject; |
| | | import org.slf4j.Logger; |
| | |
| | | if (series == null) { |
| | | return JsonUtilV2.loadFalseJson("当前影片不存在"); |
| | | } |
| | | if (!"add".equalsIgnoreCase(series.getStatus()) && !"update".equalsIgnoreCase(series.getStatus())) { |
| | | if (!PPTVUtil.getAvaiableStates().contains(series.getStatus())) { |
| | | return JsonUtilV2.loadFalseJson("当前影片已下线"); |
| | | } |
| | | |
| | | if (series.getGoodsInfo() == null || StringUtil.isNullOrEmpty(series.getGoodsInfo().getGoodsNo())) { |
| | | PPTVSeries detail = PPTVApiUtil.getDetail(series.getSeriesCode()); |
| | | series.setGoodsInfo(detail.getGoodsInfo()); |
| | | pptvService.updateSeriesGoodsInfo(series.getInfoID(), series.getGoodsInfo()); |
| | | } |
| | | |
| | | if (series.getGoodsInfo() == null || StringUtil.isNullOrEmpty(series.getGoodsInfo().getGoodsNo())) { |
| | | return JsonUtilV2.loadFalseJson("当前影片不能购买"); |
| | | } |
| | | |