|
|
@@ -20,6 +20,9 @@ class MiniApp extends Application
|
|
|
'secret' => $rawConfig['secret'],
|
|
|
];
|
|
|
if ($appID && $appID != $config['app_id']) {
|
|
|
+ if (!isset($rawConfig['extend'])) {
|
|
|
+ throw new InvalidArgumentException('请确认配置的微信小程序信息是否正确');
|
|
|
+ }
|
|
|
foreach ($rawConfig['extend'] as $item) {
|
|
|
if ($item['app_id'] == $appID) {
|
|
|
$config = [
|