|
@@ -10,6 +10,7 @@ import org.jeecg.modules.okki.account.entity.OkkiAccount;
|
|
|
import org.jeecg.modules.okki.account.service.IOkkiAccountService;
|
|
|
import org.jeecg.modules.okki.site.dto.FeiShuRecordSheetDto;
|
|
|
import org.jeecg.modules.okki.site.entity.FeiShuConfigEnum;
|
|
|
+import org.jeecg.modules.okki.site.entity.FeiShuConfigManager;
|
|
|
import org.jeecg.modules.okki.site.entity.OkkiSite;
|
|
|
import org.jeecg.modules.okki.site.service.IFeiShuCommonService;
|
|
|
import org.jeecg.modules.okki.site.service.IFeiShuGroupService;
|
|
@@ -48,7 +49,7 @@ public class FeiShuSheetServiceImpl implements IFeiShuSheetService {
|
|
|
*/
|
|
|
@Override
|
|
|
public void syncWebsiteToFeiShuSheet(OkkiSite okkiSite) {
|
|
|
- FeiShuConfigEnum configEnum = FeiShuConfigEnum.valueOf("DEV");
|
|
|
+ FeiShuConfigEnum configEnum = FeiShuConfigManager.getInstance().getConfigEnum();
|
|
|
Client client = Client.newBuilder(configEnum.getAppId(), configEnum.getAppSecret()).build();
|
|
|
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
@@ -170,7 +171,7 @@ public class FeiShuSheetServiceImpl implements IFeiShuSheetService {
|
|
|
* @return
|
|
|
*/
|
|
|
public boolean sendUpdateRequestFeiShuSheet(Map<String, Object> updateMap, FeiShuRecordSheetDto recordSheetDto) {
|
|
|
- FeiShuConfigEnum configEnum = FeiShuConfigEnum.valueOf("DEV");
|
|
|
+ FeiShuConfigEnum configEnum = FeiShuConfigManager.getInstance().getConfigEnum();
|
|
|
Client client = Client.newBuilder(configEnum.getAppId(), configEnum.getAppSecret()).build();
|
|
|
|
|
|
UpdateAppTableRecordReq updateReq = UpdateAppTableRecordReq.newBuilder()
|