|
|
@@ -523,6 +523,29 @@ class ServiceOrderLogic extends BaseLogic
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ public static function getDetailStatus($params)
|
|
|
+ {
|
|
|
+ try {
|
|
|
+ $order_info = \app\common\model\recharge\RechargeOrder::with(['service_work'=>function ($query) {
|
|
|
+ $query->visible(['work_sn'])->append(['service_status_text','user_service_status','user_service_status_text']);
|
|
|
+ }])
|
|
|
+ ->visible(['id','sn'])
|
|
|
+ ->where([
|
|
|
+ 'order_type' => 0,
|
|
|
+ 'user_id' => $params['user_id'],
|
|
|
+ 'sn'=>$params['sn']
|
|
|
+ ])->findOrEmpty()->toArray();
|
|
|
+ if(empty($order_info)){
|
|
|
+ throw new Exception('订单不存在');
|
|
|
+ }
|
|
|
+ return $order_info;
|
|
|
+ }
|
|
|
+ catch (\Exception $e) {
|
|
|
+ self::setError($e->getMessage());
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* 获取订单支付详情
|