<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Shop\Util; use ModStart\Core\Dao\ModelUtil; class OrderUtil { public static function get($E24Va) { $v9Xk2 = ModelUtil::get('order', array('id' => $E24Va)); return $v9Xk2; } public static function getOrderInfo($E24Va) { goto ZYxQB; ZYxQB: $v9Xk2 = ModelUtil::get('order', array('id' => $E24Va)); goto nsXhb; SCqyo: foreach ($jiVEb as &$RkS5H) { if (!empty($RkS5H['_goodsSnapshot'])) { $RkS5H['_goodsSnapshot']['specSpec'] = GoodsUtil::unified2KeyValue($RkS5H['_goodsSnapshot']['specSpec']); } } goto b8NY_; b8NY_: $v9Xk2['_orderGoods'] = $jiVEb; goto whXeX; nsXhb: if (empty($v9Xk2)) { return null; } goto g01HY; eJCYR: foreach ($jiVEb as &$RkS5H) { if (isset($RkS5H['_goodsSnapshot'])) { if (!$RkS5H['_goodsSnapshot']['isVirtual']) { $J7FAp = false; break; } } } goto EHc3h; EHc3h: $v9Xk2['_isAllVirtual'] = $J7FAp; goto phAND; NF4K0: if (!empty($jiVEb[0]['goodsSnapshotId'])) { ModelUtil::join($jiVEb, 'goodsSnapshotId', '_goodsSnapshot', 'goods_snapshot', 'id'); } goto SCqyo; phAND: return $v9Xk2; goto rPZ3B; g01HY: $jiVEb = ModelUtil::all('order_goods', array('orderId' => $v9Xk2['id'])); goto NF4K0; whXeX: $J7FAp = true; goto eJCYR; rPZ3B: } }