|
@@ -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); //商品描述
|
|
|
//自定义订单号,此处仅作举例
|