🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
### 根据订单状态获取流通唯一码物流状态 **位置:** Common\Lib\FlowLib.class.php **参数:** * @param $order_type int 订单类型 * @return array 物流状态 **调用:** * $flow = new FlowLib(); * $order_arr = $flow->deliveryStatus($order_type); **完整代码:** ~~~ /** * 根据订单类型获取物流状态 * @param $order_type int 订单类型 * @return array 物流状态 * whz 2018-03-02 * */ public function deliveryStatus($order_type) { //订单状态:1、配货单 if ($order_type == 1) { return array(3,4); } //订单状态:2、调拨单 if ($order_type == 2) { return array(5,6); } //订单状态:3、退仓单 if ($order_type == 3) { return array(7,8); } //订单状态:4、移库单 if ($order_type == 4) { return array(9,10); } } ~~~