If there are too many levels of nesting in the Thinkphp template engine, an error will be reported if there are three levels of nesting, and the complete code will be added.

  question
<if condition="$detail.order.payment.app_rpc_id eq '-1' ">
 <if condition="$detail.order.status eq 'dead' ">
 Voided
 <elseif  condition="$detail.order.status eq 'finish' "/>
 Completed
 <else/>
 <if condition="$detail.order.pay_status eq '1' ">
 Paid
 <elseif condition="$detail.order.pay_status eq '2'"/>
 Paid to Guarantor
 <elseif condition="$detail.order.pay_status eq '3'"/>
 Partial payment
 <elseif condition="$detail.order.pay_status eq '4'"/>
 Partial refund
 <else/>
 Full refund
 </if>
 </if>
 <else/>
 
 
 </if>

图片描述

https://github.com/liu21st/thinkphp/blob/master/ThinkPHP/Library/Think/Template/TagLib/Cx.class.php#L24

The official Cx template library defines the default nesting level of if. Modifying this level can support more nesting formats.