|
@@ -22,7 +22,7 @@ use think\facade\Log;
|
|
|
class MeiTuanNotifyController extends BaseApiController
|
|
class MeiTuanNotifyController extends BaseApiController
|
|
|
{
|
|
{
|
|
|
|
|
|
|
|
- public array $notNeedLogin = ['bookresultcallback','notify5810099','notify5810005','notify5810007','notify5810009','notify5810013','notify5810023','notify5810027','notify5810029','notify5810031','notifyMapping','submitOrder','notifyAuth','notifyReviewAuth','get_sign','test','cancellation','bookingResults','booking','changeBooking','cancellation5910003','bookingResults5910005','booking5910011','booking5910015','booking5910017'];
|
|
|
|
|
|
|
+ public array $notNeedLogin = ['finishedWork','bookresultcallback','notify5810099','notify5810005','notify5810007','notify5810009','notify5810013','notify5810023','notify5810027','notify5810029','notify5810031','notifyMapping','submitOrder','notifyAuth','notifyReviewAuth','get_sign','test','cancellation','bookingResults','booking','changeBooking','cancellation5910003','bookingResults5910005','booking5910011','booking5910015','booking5910017'];
|
|
|
|
|
|
|
|
public function notifyAuth(): void
|
|
public function notifyAuth(): void
|
|
|
{
|
|
{
|
|
@@ -314,6 +314,34 @@ class MeiTuanNotifyController extends BaseApiController
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 手动完结订单
|
|
|
|
|
+ * @return \think\response\Json
|
|
|
|
|
+ */
|
|
|
|
|
+ public function finishedWork()
|
|
|
|
|
+ {
|
|
|
|
|
+ $work = ServiceWork::where('id',324)->findOrEmpty();
|
|
|
|
|
+ if(!$work->isEmpty()){
|
|
|
|
|
+ $work->work_pay_status = WorkEnum::IS_PAY_STATUS;
|
|
|
|
|
+ $orders = \app\common\model\orders\RechargeOrder::where(['work_id'=>324])->select()->toArray();
|
|
|
|
|
+ $order_total = 0;
|
|
|
|
|
+ $order_amount = 0;
|
|
|
|
|
+ foreach ($orders as $k=>$v){
|
|
|
|
|
+ $order_total += $v['order_total'];
|
|
|
|
|
+ $order_amount += $v['order_amount'];
|
|
|
|
|
+ }
|
|
|
|
|
+ $work->work_total = $order_total;
|
|
|
|
|
+ $work->work_amount = $order_amount;
|
|
|
|
|
+ $work->work_status = 7;
|
|
|
|
|
+ $work->user_confirm_status = 5;
|
|
|
|
|
+ $work->service_status = 3;
|
|
|
|
|
+ $work->work_pay_status = 1;
|
|
|
|
|
+ $work->finished_time = time();
|
|
|
|
|
+ $work->save();
|
|
|
|
|
+ }
|
|
|
|
|
+ return $this->success('订单核销成功');
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
public function notify5810099()
|
|
public function notify5810099()
|
|
|
{
|
|
{
|
|
|
//尾款结算4
|
|
//尾款结算4
|