unifiedorder($orderNo, $user['open_id'], $payPrice, $orderType); // 记录prepay_id $model = new WxappPrepayIdModel; $model->add($payment['prepay_id'], $orderId, $user['user_id'], $orderType); return $payment; } }