首頁  >  問答  >  主體

為什麼生成不了二維碼啊

class Index
{
    public function index()
    {
          
     quire_once APP_PATH.'common/WxpayAPI/lib/WxPay.Api.php';
$input = new \WxPayUnifiedOrder();
   // 設定商品說明
   $input->SetBody('測試商品');
   //設定訂單編號
#noSet$ (date('YmdHis'));
   // 設定訂單金額(單位:分)
   $input->SetTotal_fee('1');
   // 設定非同步通知位址
  input->SetNotify_url('http://www.php.wx/index.php/index/Notify/index');
   // 設定交易類型
   $input->SetTrade_type('NATIVE' );
   // 設定商品ID
   $input->SetProduct_id('123456780');
   // 呼叫統一下單API
   $result#   // 呼叫統一下單API
  Pay$result ;
              //產生二維碼
            $code_url = $result['code_url'];##c qrcode.php?data='.urlencode($code_url).' />';
   echo $img;
 
#

尾生尾生2013 天前2236

全部回覆(1)我來回復

  • 原始刻意

    原始刻意2020-05-23 16:32:47

    可以了嗎?

    #

    回覆
    0
  • 取消回覆