|
|
@@ -34,6 +34,18 @@ class OrderController extends BaseController
|
|
|
|
|
|
public $guestAccess = ['order-relate', 'fast-pay', 'create-order', 'list'];
|
|
|
|
|
|
+ //修改订单 ssh 20220926
|
|
|
+ public function actionUpdate()
|
|
|
+ {
|
|
|
+ $post = Yii::$app->request->post();
|
|
|
+ $id = $post['id'] ?? 0;
|
|
|
+ $order = OrderClass::getById($id, true);
|
|
|
+ OrderClass::valid($order, $this->mainId);
|
|
|
+ unset($post['id']);
|
|
|
+ OrderClass::updateById($id, $post);
|
|
|
+ util::complete();
|
|
|
+ }
|
|
|
+
|
|
|
//客户欠款的订单 ssh 2021.2.4
|
|
|
public function actionDebtList()
|
|
|
{
|