6
0
Fork 0
release
李静 2022-04-12 16:40:04 +08:00
parent 051c2452a1
commit 0b1b44af27
1 changed files with 6 additions and 2 deletions

View File

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