|
@@ -68,9 +68,9 @@ class PaymentQueryTask extends Command
|
|
|
'order_no' => $pay->trade_no,
|
|
|
'pay_time' => $pay->pay_time,
|
|
|
], $pay->is_company == 0);
|
|
|
- if ($result['result'] == 'success') {
|
|
|
+ if ($result['result'] == 'success' && $result['content']->respCode == '0000' && $result['content']->resultFlag == 0) {
|
|
|
print_r(($pay->id) . '---执行---start---' . "\n");
|
|
|
- $sand_serial = $result['content']->sandSerial;
|
|
|
+ $sand_serial = property_exists($result['content'],'sandSerial') ? $result['content']->sandSerial : '0000';
|
|
|
$payment_service->updateBatchPaymentStatus($pay, AdvancedPaymentService::auto_success, 0, $result, $sand_serial);
|
|
|
print_r(($pay->id) . '---执行---end---' . "\n");
|
|
|
} else if ($result['result'] == 'failure') {
|