Explorar o código

fix 高端定制预约

leoxie %!s(int64=4) %!d(string=hai) anos
pai
achega
83cfb52ece
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      application/expand/controller/Xcx.php

+ 4 - 1
application/expand/controller/Xcx.php

@@ -27,7 +27,7 @@ class Xcx extends BaseAuth
         parent::__construct();
         
         if($this->_inWhiteList == true){
-            return true;
+            return ;
         }
 
         $this->_Account = $this->getKey($this->_apiCode);
@@ -80,6 +80,9 @@ class Xcx extends BaseAuth
         if(!empty($params['tip'])){
             $body = $params['tip'];
         }
+        if(empty($body)){
+            $body = $this->_apiCode;
+        }
         $unifiedOrder->setParameter("body",$body."[". substr($params['order_no'],-8)."]"); //商品描述
         $unifiedOrder->setParameter("attach",$body); //商品描述
         //自定义订单号,此处仅作举例