moonsflyer 7 months ago
parent
commit
a030eb6a54
1 changed files with 3 additions and 3 deletions
  1. 3 3
      app/api/logic/ServiceLogic.php

+ 3 - 3
app/api/logic/ServiceLogic.php

@@ -118,11 +118,11 @@ class ServiceLogic extends BaseLogic
                             $updateData['air_status'] =1;
                             break;
                     }
-                    Db::commit();
-                    return ['code'=>1,'data'=>$updateData];
+
                     $ret = User::where(['id'=> $params['user_id']])->update($updateData);
                 }
-
+                Db::commit();
+                return ['code'=>1,'data'=>$ret];
                 $order_info =  [
                     'order_id' => (int)$order['id'],
                     'order_sn' => $order['sn'],