Commit fe1a50cd by yeran

update

1 parent 64b2fd5e
...@@ -58,7 +58,7 @@ class RefundData extends MiBaseData ...@@ -58,7 +58,7 @@ class RefundData extends MiBaseData
// 二者不能同时为空 // 二者不能同时为空
if (empty($oldreqsn) && empty($oldtrxid)) { if (empty($oldreqsn) && empty($oldtrxid)) {
throw new PayException('必须提供米付支付交易号或平台唯一订单号。'); throw new PayException('必须提供02m支付交易号或平台唯一订单号。');
} }
// if ($trxamt<1) { // if ($trxamt<1) {
......
...@@ -61,11 +61,11 @@ abstract class SwBaseStrategy implements BaseStrategy ...@@ -61,11 +61,11 @@ abstract class SwBaseStrategy implements BaseStrategy
$retData = (json_decode($responseTxt['body'],true)); $retData = (json_decode($responseTxt['body'],true));
if ($retData['return_code'] != '01') { if ($retData['return_code'] != '01') {
throw new PayException('扫呗平台返回错误提示:' . $retData['return_msg']); throw new PayException('SW平台返回错误提示:' . $retData['return_msg']);
} }
if ($retData['result_code'] == '02') { if ($retData['result_code'] == '02') {
$msg = $retData['result_code'] .' : '. $retData['return_msg']; $msg = $retData['result_code'] .' : '. $retData['return_msg'];
throw new PayException('扫呗返回错误提示:' . $msg); throw new PayException('SW返回错误提示:' . $msg);
} }
return $retData; return $retData;
......
...@@ -107,13 +107,13 @@ final class SwConfig extends ConfigInterface ...@@ -107,13 +107,13 @@ final class SwConfig extends ConfigInterface
if (key_exists('merchant_no', $config) && !empty($config['merchant_no'])) { if (key_exists('merchant_no', $config) && !empty($config['merchant_no'])) {
$this->merchant_no = $config['merchant_no']; $this->merchant_no = $config['merchant_no'];
} else { } else {
throw new PayException('必须提供扫呗商户号'); throw new PayException('必须提供SW商户号');
} }
if (key_exists('terminal_id', $config) && !empty($config['terminal_id'])) { if (key_exists('terminal_id', $config) && !empty($config['terminal_id'])) {
$this->terminal_id = $config['terminal_id']; $this->terminal_id = $config['terminal_id'];
} else { } else {
throw new PayException('必须提供扫呗终端号'); throw new PayException('必须提供SW终端号');
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!