'BALANCE', 'out_trade_no' => 'BAL123'])); same('微信支付', Display::paymentRecordType(['openid' => 'openid', 'out_trade_no' => 'PO123'])); same('余额支付', Display::paymentRecordType(['openid' => '', 'out_trade_no' => 'BAL123'])); same('未记录', Display::paymentRecordType(['openid' => '', 'out_trade_no' => 'OTHER123'])); same(['settled' => [['status' => 'paid'], ['status' => 'refunding'], ['status' => 'refund_failed']], 'attempts' => [['status' => 'pending'], ['status' => 'closed']], 'needs_review' => 1], Display::groupPaymentRecords([['status' => 'paid'], ['status' => 'pending'], ['status' => 'closed'], ['status' => 'refunding'], ['status' => 'refund_failed']])); same(['settled' => [], 'attempts' => [['status' => 'unexpected']], 'needs_review' => 1], Display::groupPaymentRecords([['status' => 'unexpected']])); same('用户', Display::operator('user')); same('系统', Display::operator('system')); same('订单应付金额', Display::amountLabel(['pay_status' => 0, 'status' => 0])); same('订单金额', Display::amountLabel(['pay_status' => 0, 'status' => 9])); same('已付金额(退款前)', Display::amountLabel(['pay_status' => 1, 'status' => 8, 'refund_amount' => 30])); same('已付金额', Display::amountLabel(['pay_status' => 1, 'status' => 8, 'refund_amount' => 0])); same('安装x1;拆旧x2', Display::services('[{"name":"拆旧","num":2}]', ['service_type_name'=>'安装','num'=>1])); same('安装x1;拆旧x1', Display::services('安装x1;拆旧x1', [])); same('维修x2', Display::services('', ['service_type_name'=>'维修', 'num'=>2])); same('', Display::services('[{"name":"拆旧"', [])); same('待确认', Display::quoteStatus('wait')); same('已选定', Display::quoteStatus('selected')); same('已选定', Display::quoteStatus('accept')); echo "Order detail display tests passed\n";