|
|
@@ -87,8 +87,7 @@ class ServiceLogic extends BaseLogic
|
|
|
'content'=>$params['content'],
|
|
|
'order_id'=>0,
|
|
|
]);
|
|
|
- Db::commit();
|
|
|
- return ['code'=>1,'data'=>$result];
|
|
|
+
|
|
|
if($result){
|
|
|
|
|
|
$data = [
|
|
|
@@ -98,6 +97,8 @@ class ServiceLogic extends BaseLogic
|
|
|
'pay_status' => PayEnum::UNPAID,
|
|
|
'order_amount' => $order_money,
|
|
|
];
|
|
|
+ Db::commit();
|
|
|
+ return ['code'=>1,'data'=>$data];
|
|
|
$order = RechargeOrder::create($data);
|
|
|
$user_service_info = UserService::find($result['id']);
|
|
|
$user_service_info->order_id = $order['id'];
|