Files
OMS/app/erpapi/lib/shop/response/bookingrefund.php
2025-12-28 23:13:25 +08:00

58 lines
1.6 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/**
* Copyright © ShopeX http://www.shopex.cn. All rights reserved.
* See LICENSE file for license details.
*/
/**
* 预定退款
* 20180927 by wangjianjun
*/
class erpapi_shop_response_bookingrefund extends erpapi_shop_response_abstract {
/**
* ordermsg
* @param mixed $params 参数
* @return mixed 返回值
*/
public function ordermsg($params){
$this->__apilog['title'] = '客户有意退款';
$this->__apilog['original_bn'] = $params['tid'];
$sdf = [
'tid' => $params['tid'],
'msg_id' => $params['msg_id'],
'seller_nick' => $params['seller_nick'],
'user_nick' => $params['user_nick'],
'call_type' => $params['call_type'],
'oid_list' => $params['oid_list'],
'refundStatus' => $params['refundStatus'] ? : 1,
'shop_id' => $this->__channelObj->channel['shop_id'],
];
return $sdf;
}
/**
* ordercancle
* @param mixed $sdf sdf
* @return mixed 返回值
*/
public function ordercancle($sdf){
$this->__apilog['result']['data'] = array('tid'=>$sdf['orderId']);
$this->__apilog['original_bn'] = $sdf['orderId'];
$this->__apilog['title'] = '单据取消['.$sdf['orderId'].']';
$shop_id = $this->__channelObj->channel['shop_id'];
$data = array(
'order_bn' => $sdf['orderId'],
'shop_id' => $shop_id,
'reason' => $sdf['cancelReason'],
);
return $data;
}
}