Merge branch 'main' of https://gitea.lihaink.cn/mkm/multi-store
This commit is contained in:
commit
748d9ea085
@ -28,8 +28,12 @@ class PayController extends BaseApiController
|
||||
{
|
||||
$app = new PayService(1);
|
||||
$result = $app->wechat->callback(Request()->post());
|
||||
Cache::set('log'.time(),json_encode($result));
|
||||
Cache::set('logE'.time(),$result->event_type);
|
||||
Cache::set('logE1'.time(),$result['event_type']??'');
|
||||
if ($result && $result->event_type == 'TRANSACTION.SUCCESS') {
|
||||
$ciphertext = $result->resource['ciphertext'];
|
||||
Cache::set('logc'.time(),$result->resource['ciphertext']);
|
||||
if ($ciphertext['trade_state'] === 'SUCCESS') {
|
||||
$attach = $ciphertext['attach'];
|
||||
switch ($attach) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user