| 123456789101112131415161718192021222324252627282930313233343536373839 |
- #pragma once
- #include "CellBase.h"
- #include "CellAUTOCREATE.h"
- #include "CHttpUtil.h"
- class CCellHttpClient :public CCellBase
- {
- DECLARE_CELL_AUTOCREATE
- public:
- CCellHttpClient(void);
- CCellHttpClient(CCellHttpClient& CellHttpClient);
- virtual ~CCellHttpClient(void);
- ////////////////////////////////////////////////////////////////////////////////
- //继承自CCellBase
- int operate(void);
- CCellBase * copy(void);
- bool fillData(IFlowDataProvider& Provider);
- LPCTSTR name(void) const { return CELL_NAME_HTTP; }
- int maxWaitingTime(void) const { return 0; }
-
- private:
- bool m_IsSaveRs; // SQL语句是否返回记录集标志,1:返回 0:不返回
- int m_SuccessPos; // 执行成功,下一节点
- int m_FailPos; // 执行失败, 下一节点
- CString m_Url; // 要请求的URL
- };
- /*
- <cell Name = "CELL_HTTP" Pos = "220" HttpStr = "http://127.0.0.1/api/%[CalleeID]"
- IsSaved = "yes" SuccessPos = "221" FailPos = "24" Note = "获取备注" / >
- 接口需要返回的json结构
- { \"state\":\"success\",\"message\" : \"获取最近沟通的坐席\",\"data\" : {\"seatcode\":\"8025\"} }
- */
|