|
|
|
@ -3,6 +3,7 @@ namespace Base\Service;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
use Org\YeepaySDK\Yeepay;
|
|
|
|
|
use Think\Log;
|
|
|
|
|
|
|
|
|
|
class PayService {
|
|
|
|
|
|
|
|
|
@ -32,7 +33,7 @@ class PayService {
|
|
|
|
|
" ]" .
|
|
|
|
|
" }");
|
|
|
|
|
$result = $aop->execute($request);
|
|
|
|
|
|
|
|
|
|
Log::write("ALIQUERYFAIL->".serialize($result), Log::DEBUG);
|
|
|
|
|
$responseNode = str_replace(".", "_", $request->getApiMethodName()) . "_response";
|
|
|
|
|
$resultCode = $result->$responseNode->code;
|
|
|
|
|
if(!empty($resultCode)&&$resultCode == 10000){
|
|
|
|
@ -51,6 +52,7 @@ class PayService {
|
|
|
|
|
$orderQuery = new \OrderQuery_pub($payConf['appid'], $payConf['partner'], $payConf['key']);
|
|
|
|
|
$orderQuery->setParameter('out_trade_no', $orderInfo['out_trade_no']);//商户订单号
|
|
|
|
|
$result = $orderQuery->getResult();
|
|
|
|
|
Log::write("wechatQUERYFAIL->".serialize($result), Log::DEBUG);
|
|
|
|
|
if($result['trade_state']=='SUCCESS') {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
@ -72,6 +74,7 @@ class PayService {
|
|
|
|
|
echo json_encode(['code'=>0, 'msg'=> '支付参数有误,请重试'.$yeeData['data']['result']['code']]);
|
|
|
|
|
exit;
|
|
|
|
|
}*/
|
|
|
|
|
Log::write("yeeQUERYFAIL->".serialize($ret), Log::DEBUG);
|
|
|
|
|
if ($ret['result'] && $ret['result']['code'] == "OPR00000" && $ret['result']['status'] == "SUCCESS") {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|