💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
``` public function wx_pay($attach){ require_once "../extend/WxPay/lib/WxPay.Api.php"; require_once "../extend/WxPay/example/WxPay.NativePay.php"; $notify = new \NativePay(); $input = new \WxPayUnifiedOrder(); $input->SetBody("卡密"); $input->SetOut_trade_no($attach['order_id']); $input->SetTotal_fee($attach['fee']*100); $input->SetTime_start(date("YmdHis")); $input->SetTime_expire(date("YmdHis", time() + 3600)); $input->SetNotify_url("http://test.qingdabao.com/pay/notify_url"); $input->SetTrade_type("NATIVE"); $input->SetProduct_id($attach['goods_id']); $result = $notify->GetPayUrl($input); $url = $result["code_url"]; $shops=new Shops(); $url=$shops->wx_code($url); return $url; } ```