小编Mal*_*sif的帖子

正确标记但面临错误:开始标记必须具有匹配的结束标记

向 Stripe API 发送 http 调用以获取 Auth-token,但以下代码引发错误:开始标记必须具有匹配的结束标记。可以通过添加</cffunction>. 如果标签的正文为空,则可以使用快捷方式<cffunction .../>.....

<cffunction name="getAuthToken" access="private" output="false">

 <cfhttp url="#variables.server#/v1/tokens" method="post" password="#variables.password#">

        <cfargument name="req" required="true" type="any">

        <cfhttpparam type="header" name="Content-Type" value="application/x-www-form-urlencoded">

        <cfhttpparam type="header" name="Accept-Language" value="en_US">

        <cfhttpparam type="body" value="#req#">

    </cfhttp>
    
    <cfset response = deserializeJSON(cfhttp.FileContent)>
    
    <cfreturn response>
</cffunction>
Run Code Online (Sandbox Code Playgroud)

coldfusion cfml

2
推荐指数
1
解决办法
95
查看次数

标签 统计

cfml ×1

coldfusion ×1