|
|
@@ -11,8 +11,6 @@ import com.iformall.mapper.TtMerchantPoiMapper; |
|
|
|
import com.iformall.mapper.WxAppinfoMapper; |
|
|
|
import com.iformall.service.TtMerchantPoiService; |
|
|
|
import com.iformall.service.toutiao.FmTtOpenService; |
|
|
|
import com.iformall.service.toutiao.api.TtOpenMaService; |
|
|
|
import com.iformall.service.toutiao.api.bean.TtOpenResult; |
|
|
|
import com.iformall.service.toutiao.api.bean.TtOpenShopMaterial; |
|
|
|
import org.slf4j.Logger; |
|
|
|
import org.slf4j.LoggerFactory; |
|
|
@@ -68,19 +66,20 @@ public class TtMerchantPoiServiceImpl implements TtMerchantPoiService { |
|
|
|
shopMaterial.setExpireTime(merchantPoi.getExpireTime()); |
|
|
|
shopMaterial.setAdditionalQual(merchantPoi.getAdditionalQual()); |
|
|
|
|
|
|
|
TtOpenMaService openMaService = openService.getTtOpenComponentService().getTtMaServiceByAppid(appinfo.getAppId()); |
|
|
|
|
|
|
|
try{ |
|
|
|
TtOpenResult res = openMaService.addShopMaterial(shopMaterial); |
|
|
|
if(res.isSuccess()){ |
|
|
|
merchantPoi.setUpdateDate(new Date()); |
|
|
|
ttMerchantPoiMapper.updateById(merchantPoi); |
|
|
|
return true; |
|
|
|
} |
|
|
|
logger.error("提交商铺资质材料error"+ res.getMessage()); |
|
|
|
}catch(Exception e){ |
|
|
|
logger.error("提交商铺资质材料error"+ e.getMessage()); |
|
|
|
} |
|
|
|
logger.info("测试数据----" + shopMaterial.toJson()); |
|
|
|
|
|
|
|
// try{ |
|
|
|
// TtOpenMaService openMaService = openService.getTtOpenComponentService().getTtMaServiceByAppid(appinfo.getAppId()); |
|
|
|
// TtOpenResult res = openMaService.addShopMaterial(shopMaterial); |
|
|
|
// if(res.isSuccess()){ |
|
|
|
// merchantPoi.setUpdateDate(new Date()); |
|
|
|
// ttMerchantPoiMapper.updateById(merchantPoi); |
|
|
|
// return true; |
|
|
|
// } |
|
|
|
// logger.error("提交商铺资质材料error"+ res.getMessage()); |
|
|
|
// }catch(Exception e){ |
|
|
|
// logger.error("提交商铺资质材料error"+ e.getMessage()); |
|
|
|
// } |
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
|