'recharge', 'name' => get_lang('enum_order.order_type_recharge') ]; } public static function getStatus($status = '') { $data = [ self::WAIT_PAY => [ 'name' => '待支付', 'status' => self::WAIT_PAY, 'is_refund' => 0, 'action' => [], 'member_action' => [ [ 'name' => '支付', 'class' => '', 'params' => '' ], ], ], self::PAY => [ 'name' => '已支付', 'status' => self::PAY, 'is_refund' => 0, 'action' => [], 'member_action' => [ ], ], self::FINISH => [ 'name' => '已完成', 'status' => self::FINISH, 'is_refund' => 0, 'action' => [], 'member_action' => [ ], ], self::CLOSE => [ 'name' => '已关闭', 'status' => self::CLOSE, 'is_refund' => 0, 'action' => [], 'member_action' => [ ], ] ]; if ($status == '') { return $data; } return $data[$status] ?? ''; } }