Skip to content

Commit

Permalink
fix 文本中包含双引号问题
Browse files Browse the repository at this point in the history
fix 文本中包含双引号问题
  • Loading branch information
lobtao committed Jan 16, 2019
1 parent a1ec367 commit 1872442
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@

.DS_Store
.idea/encodings.xml
.idea/misc.xml
.idea/modules.xml
.idea/tp5helper.iml
.idea/vcs.xml
.idea/workspace.xml
2 changes: 1 addition & 1 deletion src/RpcController.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function handle($namespace, $filter = null) {
$this->args = $request->param('p', []);

if (gettype($this->args) == 'string') {//微信小程序特别设置;浏览器提交过来自动转换
$this->args = html_entity_decode($this->args);
//$this->args = html_entity_decode($this->args);//chrome端加上这个会报错
$this->args = json_decode($this->args, true);
}
$this->callback = $request->param('callback');
Expand Down

0 comments on commit 1872442

Please sign in to comment.