Browse Source

fix 高端定制预约

leoxie 4 years ago
parent
commit
83cfb52ece
1 changed files with 4 additions and 1 deletions
  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); //商品描述
         //自定义订单号,此处仅作举例