shish %!s(int64=2) %!d(string=hai) anos
pai
achega
5755bd7e94
Modificáronse 1 ficheiros con 34 adicións e 0 borrados
  1. 34 0
      app-ghs/controllers/OrderController.php

+ 34 - 0
app-ghs/controllers/OrderController.php

@@ -34,6 +34,40 @@ class OrderController extends BaseController
 
     public $guestAccess = ['create-order', 'order-relate', 'fast-pay', 'info'];
 
+    //下载图片版订单 ssh 20240321
+    public function actionDown()
+    {
+        $get = Yii::$app->request->get();
+        $id = $get['id'] ?? '';
+        $order = OrderClass::getById($id, true);
+        if (empty($order)) {
+            util::fail('没有找到订单');
+        }
+        if ($order->mainId != $this->mainId) {
+            util::fail('不是你的订单');
+        }
+        $name = '石冰龙';
+        $str = <<<XL
+aaaaaaaaaaaaaaaa{$name}aaaaaaaaaaaaaaaaa
+XL;
+        echo $str;
+
+    }
+
+    //下载客户当天图片版订单 ssh 20240321
+    public function actionAllDown()
+    {
+        $get = Yii::$app->request->get();
+        $id = $get['id'] ?? '';
+        $order = OrderClass::getById($id, true);
+        if (empty($order)) {
+            util::fail('没有找到订单');
+        }
+        if ($order->mainId != $this->mainId) {
+            util::fail('不是你的订单');
+        }
+    }
+
     //确认送达
     public function actionConfirmReach()
     {