Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

only office 分享文档出去 报错Null问题 已解决 #28

Open
yybinpitaya opened this issue Oct 26, 2021 · 1 comment
Open

only office 分享文档出去 报错Null问题 已解决 #28

yybinpitaya opened this issue Oct 26, 2021 · 1 comment

Comments

@yybinpitaya
Copy link

原始代码:

"editorConfig": {
                    "callbackUrl": <?php var_export($option['callbackUrl']); ?>,
                    "lang": <?php var_export($option['lang']); ?>,
                    "mode": <?php var_export($option['mode']); ?>,
                    "user": {
                        "id": <?php var_export($option['UID']); ?>,
                        "name": <?php var_export($option['user']); ?>
                    },

修改为

"editorConfig": {
                    "callbackUrl": <?php var_export($option['callbackUrl']); ?>,
                    "lang": <?php var_export($option['lang']); ?>,
                    "mode": <?php var_export($option['mode']); ?>,
                    "user": {
                        "id": <?php echo $option['UID']??0; ?>,
                        "name": '<?php echo $option['user']??''; ?>'
                    },

注:需要php7支持 其他低版本自行修改为 三元运算判断

@iranee
Copy link

iranee commented Jul 3, 2022

你好,部署的版本是7.1.0.215,分享文档打开后提示The "documentType" parameter for the config object is invalid. Please correct it.怎么解决?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants