$order_info['trade_id']]); $order = BargainOrder::findOne(['order_no' => $order_info['order_no']]); $res = BargainOrder::pay($order,$order_info['pay_type'], $payment_trade['out_trade_no']); if($res === false) throw new Exception(Order::getStaticError()); return true; } catch (Exception $e) { echo $e->getMessage(); $this->setStaticError($e->getMessage()); return false; } } }