|
|
@@ -27,7 +27,7 @@ use biz\shop\classes\ShopAdminClass;
|
|
|
class OrderController extends BaseController
|
|
|
{
|
|
|
|
|
|
- public $guestAccess = ['create-order', 'order-relate', 'fast-pay'];
|
|
|
+ public $guestAccess = ['create-order', 'order-relate', 'fast-pay', 'info'];
|
|
|
|
|
|
//预订单到货 ssh 20220321
|
|
|
public function actionArrival()
|
|
|
@@ -1046,6 +1046,34 @@ class OrderController extends BaseController
|
|
|
util::success($info);
|
|
|
}
|
|
|
|
|
|
+ //获取订单详情,不需要登录可以访问,后面要删除此方法 ssh 20220819
|
|
|
+ public function actionInfo()
|
|
|
+ {
|
|
|
+ $get = Yii::$app->request->get();
|
|
|
+ $id = $get['id'] ?? 0;
|
|
|
+ $info = OrderService::getOrderInfo($id, true, true, true, false);
|
|
|
+ OrderClass::valid($info, $this->shopId);
|
|
|
+
|
|
|
+ //是否有云打印判断
|
|
|
+ $hasCloudPrint = 0;
|
|
|
+ $shopExt = $this->shopExt;
|
|
|
+ if (isset($shopExt->printSn) && !empty($shopExt->printSn) && isset($shopExt->printKey) && !empty($shopExt->printKey)) {
|
|
|
+ $hasCloudPrint = 1;
|
|
|
+ }
|
|
|
+ $info['hasCloudPrint'] = $hasCloudPrint;
|
|
|
+
|
|
|
+ $purchaseId = $info['purchaseId'] ?? 0;
|
|
|
+ $cg = PurchaseClass::getById($purchaseId);
|
|
|
+ $info['cgInfo'] = $cg;
|
|
|
+
|
|
|
+ //店长信息
|
|
|
+ $mainId = $cg['mainId'] ?? 0;
|
|
|
+ $superInfo = ShopAdminClass::getManager($mainId);
|
|
|
+ $info['customSuper'] = $superInfo;
|
|
|
+
|
|
|
+ util::success($info);
|
|
|
+ }
|
|
|
+
|
|
|
//自取免发货流程处理 ssh 2021.1.22
|
|
|
public function actionWithoutSend()
|
|
|
{
|