Closed pleaseyang closed 3 years ago
应该是bug 我这样修改后就可以了
<?php
/*
namespace EasyDingTalk\Kernel\Providers;
use EasyDingTalk\Kernel\Encryption\Encryptor; use Pimple\Container; use Pimple\ServiceProviderInterface;
class EncryptionServiceProvider implements ServiceProviderInterface { /**
确实会存在这个问题
确实,大佬什么时候改一下 @mingyoung
closed了?好像还是有这个问题
解密的时候会出现特殊字符。 不知道是不是这个原因导致解密失败。目前事件订阅一直无法通过
`[2020-12-21 19:00:47] local.DEBUG: npQpVg6AN75aeCmV {"EventType":"check_url"}ding2alggykjubbmwmji
[2020-12-21 19:00:47] local.DEBUG: Exception
[2020-12-21 19:00:47] local.DEBUG: RuntimeException: Invalid CorpId. in D:\wamp64\www\sagawa\vendor\mingyoung\dingtalk\src\Kernel\Encryption\Encryptor.php:107 Stack trace:
0 D:\wamp64\www\sagawa\vendor\mingyoung\dingtalk\src\Kernel\Server.php(100): EasyDingTalk\Kernel\Encryption\Encryptor->decrypt('\x00\x00\x00\x19{"EventType...', 'f6b851ed490f95e...', 'M4Gf8bs3', '1608548446448')
1 D:\wamp64\www\sagawa\vendor\mingyoung\dingtalk\src\Kernel\Server.php(47): EasyDingTalk\Kernel\Server->getPayload()
2 D:\wamp64\www\sagawa\app\Http\Controllers\Admin\DingTalkController.php(194): EasyDingTalk\Kernel\Server->serve()
3 [internal function]: App\Http\Controllers\Admin\DingTalkController->eventreceive(Object(Illuminate\Http\Request))
4 D:\wamp64\www\sagawa\vendor\laravel\framework\src\Illuminate\Routing\Controller.php(54): call_user_func_array(Array, Array)`