mirror of
https://gitee.com/ShopeX/OMS
synced 2026-04-01 21:46:43 +08:00
110 lines
3.0 KiB
PHP
110 lines
3.0 KiB
PHP
<?php
|
|
/**
|
|
* Copyright 2026 ShopeX (https://www.shopex.cn)
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
|
|
class ome_order_status{
|
|
|
|
/**
|
|
* 订单支付状态
|
|
* @access public
|
|
* @param int $status
|
|
* @return ArrayIterator 订单支付状态类型
|
|
*/
|
|
public function pay_status($status=NULL){
|
|
$pay_status = array (
|
|
0 => '未支付',
|
|
1 => '已支付',
|
|
2 => '处理中',
|
|
3 => '部分付款',
|
|
4 => '部分退款',
|
|
5 => '全额退款',
|
|
6 => '退款申请中',
|
|
7 => '退款中',
|
|
8 => '支付中',
|
|
);
|
|
if ($status == NULL){
|
|
return $pay_status;
|
|
}else{
|
|
return $pay_status[$status];
|
|
}
|
|
}
|
|
|
|
/**
|
|
* 订单发货状态
|
|
* @access public
|
|
* @param int $status
|
|
* @return ArrayIterator 订单发货状态类型
|
|
*/
|
|
public function ship_status($status=NULL){
|
|
$ship_status = array (
|
|
0 => '未发货',
|
|
1 => '已发货',
|
|
2 => '部分发货',
|
|
3 => '部分退货',
|
|
4 => '已退货',
|
|
);
|
|
if ($status == NULL){
|
|
return $ship_status;
|
|
}else{
|
|
return $ship_status[$status];
|
|
}
|
|
}
|
|
|
|
/**
|
|
* 订单状态
|
|
* @access public
|
|
* @param int $status
|
|
* @return ArrayIterator 订单状态类型
|
|
*/
|
|
public function order_status($status=NULL){
|
|
$order_status = array (
|
|
'active' => '活动订单',
|
|
'dead' => '已作废',
|
|
'finish' => '已完成',
|
|
);
|
|
if ($status == NULL){
|
|
return $order_status;
|
|
}else{
|
|
return $order_status[$status];
|
|
}
|
|
}
|
|
|
|
/**
|
|
* 订单确认状态
|
|
* @access public
|
|
* @param int $status
|
|
* @return ArrayIterator 订单发货状态类型
|
|
*/
|
|
public function process_status($status=NULL)
|
|
{
|
|
$process_status = array (
|
|
'unconfirmed' => '未确认',
|
|
'confirmed' => '已确认',
|
|
'splitting' => '部分拆分',
|
|
'splited' => '已拆分完',
|
|
'cancel' => '取消',
|
|
'remain_cancel' =>'余单撤销',
|
|
'is_retrial' => '复审订单',
|
|
'is_declare' => '跨境申报订单',
|
|
);
|
|
if ($status == NULL){
|
|
return $process_status;
|
|
}else{
|
|
return $process_status[$status];
|
|
}
|
|
}
|
|
} |