Update
parent
051c2452a1
commit
0b1b44af27
|
|
@ -3,9 +3,9 @@
|
||||||
namespace App\Endpoint\Callback\Http\Controllers;
|
namespace App\Endpoint\Callback\Http\Controllers;
|
||||||
|
|
||||||
use App\Enums\WalletToBankLogStatus;
|
use App\Enums\WalletToBankLogStatus;
|
||||||
use App\Exceptions\BizException;
|
|
||||||
use App\Models\WalletToBankLog;
|
use App\Models\WalletToBankLog;
|
||||||
use App\Services\YeePayService;
|
use App\Services\YeePayService;
|
||||||
|
use Exception;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use Illuminate\Support\Arr;
|
use Illuminate\Support\Arr;
|
||||||
use Illuminate\Support\Carbon;
|
use Illuminate\Support\Carbon;
|
||||||
|
|
@ -54,6 +54,10 @@ class YeePayNotifyController extends Controller
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($log->status !== WalletToBankLogStatus::Paying) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if ($orderStatus === 'SUCCESS') {
|
if ($orderStatus === 'SUCCESS') {
|
||||||
$log->update([
|
$log->update([
|
||||||
'status' => WalletToBankLogStatus::Success,
|
'status' => WalletToBankLogStatus::Success,
|
||||||
|
|
@ -85,6 +89,6 @@ class YeePayNotifyController extends Controller
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new BizException('签名错误');
|
throw new Exception('签名错误');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue