| | |
| | | import cc.mrbird.febs.mall.mapper.AppVersionMapper; |
| | | import cc.mrbird.febs.mall.mapper.DataDictionaryCustomMapper; |
| | | import cc.mrbird.febs.mall.service.ICommonService; |
| | | import cn.hutool.core.collection.CollUtil; |
| | | import cn.hutool.core.util.StrUtil; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.best.javaSdk.Client; |
| | |
| | | |
| | | @Override |
| | | public List<DataDictionaryCustom> findDataDicByType(String type) { |
| | | List<DataDictionaryCustom> dataDictionaryCustoms = dataDictionaryCustomMapper.selectDicByType(type); |
| | | if(type.equals("KEFU_SET")){ |
| | | if(CollUtil.isEmpty(dataDictionaryCustoms)){ |
| | | DataDictionaryCustom dataDictionaryCustom = new DataDictionaryCustom(); |
| | | dataDictionaryCustom.setType(type); |
| | | dataDictionaryCustom.setCode("WEIXIN"); |
| | | dataDictionaryCustom.setDescription("微信客服"); |
| | | dataDictionaryCustomMapper.insert(dataDictionaryCustom); |
| | | DataDictionaryCustom dataDictionaryCustom2 = new DataDictionaryCustom(); |
| | | dataDictionaryCustom2.setType(type); |
| | | dataDictionaryCustom2.setCode("WHATSAPP"); |
| | | dataDictionaryCustom2.setDescription("WhatsApp客服"); |
| | | dataDictionaryCustomMapper.insert(dataDictionaryCustom2); |
| | | } |
| | | } |
| | | |
| | | return dataDictionaryCustomMapper.selectDicByType(type); |
| | | } |
| | | |
| | |
| | | * partnerKey : ER5DFRT320D4ed6FAFs3G410Fs977 |
| | | * Endpoint :http://sgp-seaedi.800best.com/Malaysia/kdapi/api/proces |
| | | */ |
| | | String url = "http://sgp-seaedi.800best.com/Malaysia/kdapi/api/proces"; |
| | | String url = "http://sgp-seaedi.800best.com/Malaysia/kdapi/api/process"; |
| | | String partnerID = "MY_LEADING"; |
| | | String partnerKey = "ER5DFRT320D4ed6FAFs3G410Fs977"; |
| | | String format = "JSON"; |