...
|
...
|
@@ -102,20 +102,18 @@ class Wechat extends Controller |
|
|
'refund_desc' => $refund_desc,
|
|
|
'notify_url' => request()->domain() . url('/index/notify/notifyr')
|
|
|
]);
|
|
|
\think\Log::write('refund-result' . $result);
|
|
|
|
|
|
\think\Log::write('refund-result' . json_encode($result));
|
|
|
if ($result['return_code'] == 'SUCCESS' && $result['result_code'] == 'SUCCESS') {
|
|
|
return $result; // 返回数组
|
|
|
}
|
|
|
|
|
|
if ($result['return_code'] == 'FAIL' && array_key_exists('return_msg', $result)) {
|
|
|
// $this->setError($result['return_msg']);
|
|
|
// return false;
|
|
|
throw new \Exception($result['return_msg']);
|
|
|
$this->setError($result['return_msg']);
|
|
|
return false;
|
|
|
}
|
|
|
// $this->setError($result['err_code_des']);
|
|
|
// return false;
|
|
|
throw new \Exception($result['err_code_des']);
|
|
|
$this->setError($result['err_code_des']);
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
|