|
@@ -38,6 +38,35 @@ class OrderController extends BaseController
|
|
|
|
|
|
|
|
public $guestAccess = ['create-order', 'order-relate', 'fast-pay', 'info'];
|
|
public $guestAccess = ['create-order', 'order-relate', 'fast-pay', 'info'];
|
|
|
|
|
|
|
|
|
|
+ //复核 ssh 20241001
|
|
|
|
|
+ public function actionModifyReCheck()
|
|
|
|
|
+ {
|
|
|
|
|
+ $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('不是你的订单');
|
|
|
|
|
+ }
|
|
|
|
|
+ if ($order->reCheck == 1) {
|
|
|
|
|
+ util::fail('不需要重复操作');
|
|
|
|
|
+ }
|
|
|
|
|
+ $connection = Yii::$app->db;
|
|
|
|
|
+ $transaction = $connection->beginTransaction();
|
|
|
|
|
+ try {
|
|
|
|
|
+ $order->reCheck = 1;
|
|
|
|
|
+ $order->save();
|
|
|
|
|
+ $transaction->commit();
|
|
|
|
|
+ util::complete();
|
|
|
|
|
+ } catch (\Exception $e) {
|
|
|
|
|
+ $transaction->rollBack();
|
|
|
|
|
+ Yii::error("操作失败原因:" . $e->getMessage());
|
|
|
|
|
+ util::fail('操作失败');
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
//修改平账标识状态 ssh 20240405
|
|
//修改平账标识状态 ssh 20240405
|
|
|
public function actionModifyClearSign()
|
|
public function actionModifyClearSign()
|
|
|
{
|
|
{
|