wupengfei 2 år sedan
förälder
incheckning
25e8e5a7ee
2 ändrade filer med 5 tillägg och 3 borttagningar
  1. 1 1
      .idea/workspace.xml
  2. 4 2
      application/common/library/LianLianPay.php

+ 1 - 1
.idea/workspace.xml

@@ -192,7 +192,7 @@
       <workItem from="1662707319406" duration="6920000" />
       <workItem from="1663029342642" duration="7492000" />
       <workItem from="1663115674240" duration="4443000" />
-      <workItem from="1663216918470" duration="4350000" />
+      <workItem from="1663216918470" duration="4763000" />
     </task>
     <servers />
   </component>

+ 4 - 2
application/common/library/LianLianPay.php

@@ -76,6 +76,7 @@ class LianLianPay
         return json_decode($result,true);
     }
 
+    // 账户+收银台 (商户在充值/消费交易模式场景下使用,可通过该接口完成收银台创单,然后跳转至连连收银台完成支付。)
     function cashierDesk($order_no,$money,$user_id,$notify_url,$return_url,$goods_name,$risk_item)
     {
         // 构建请求参数
@@ -112,8 +113,9 @@ class LianLianPay
          $m_payeeInfo->payer_id = $user_id; //'1.00';
          $params->payerInfo =$m_payeeInfo;
 
-        // 测试环境地址
-         $url = 'https://accpgw-ste.lianlianpay-inc.com/v1/cashier/paycreate';
+
+         $url = 'https://accpgw-ste.lianlianpay-inc.com/v1/cashier/paycreate';// 测试环境
+         //$url = 'https://accpgw.lianlianpay.com/v1/cashier/paycreate';// 生成环境
         // var_dump(json_encode($params));
          $result = LLianPayClient::sendRequest($url, json_encode($params));
          return json_decode($result,true);