这部分:
<?php if (isset($quantity_taxation_curr) && in_array($currency['code'], $quantity_taxation_curr)) { ?>
成为树枝格式,我尝试了这个:
{% if isset(quantity_taxation_curr) AND in_array(currency['code'], quantity_taxation_curr) %}
但这不正确。
答案 0 :(得分:4)
试试这个:
private class ProgressBroadCast extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
if(some_condition){
finish();
}
}
}
答案 1 :(得分:2)
试试这个
{% if quantity_taxation_curr is defined and 'code' in quantity_taxation_curr %}
...
{% endif %}