$order_info['order_no']]]); $order->is_pay = OrderStatusEnum::PAY; $order->save(); $content = AddonsOperatingNoteContent::getOne([['id' => $order->note_id]]); $content->pay_people_num = $content->pay_people_num + 1; $content->pay_amount = $content->pay_amount + $order->buy_price; $content->save(); if ($order->save() === false) throw new Exception(''); return true; } catch (Exception $e) { echo $e->getMessage(); $this->setStaticError($e->getMessage()); return false; } } }