|
|
@@ -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()
|
|
|
{
|