模块:Common/Api:修订历史

来自决策链云智库

差异选择:选中要对比的版本的单选按钮,按Enter键或下方的按钮。
说明:(当前)=与最后版本之间的差异,(之前)=与上一版本之间的差异,=小编辑。

2023年12月13日 (星期三)

  • 当前之前 16:262023年12月13日 (三) 16:26Zeroclanzhang 讨论 贡献 1,875字节 +1,875 创建页面,内容为“local common = {} --- Checks if Api Request was successful and if the Response is valid --- @param response table --- @param errorOnData boolean --- @param errorOnData boolean --- @return boolean function common.checkResponseStructure( response, errorOnStatus, errorOnData ) if response[ 'status_code' ] ~= nil and response[ 'status_code' ] ~= 200 then if errorOnStatus == nil or errorOnStatus == true then error( 'API request returns the e…”