Skip to content

Commit

Permalink
Mod: 修改 composer.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiphin committed May 10, 2019
1 parent 7bff124 commit 1cc80b8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2017 xlstudio
Copyright (c) 2017-2019 xlstudio

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "library",
"description": "万里牛ERP开放接口的 PHP SDK",
"keywords": ["hupun", "wanliniu", "erp", "api", "sdk"],
"homepage": "https://github.com/xlstudio/hupun-openapi-php-sdk",
"homepage": "https://github.com/xlstudio/hupun",
"license": "MIT",
"authors": [
{
Expand All @@ -12,7 +12,7 @@
}
],
"require": {
"php": ">= 5.4.0",
"php": ">=5.4.0",
"ext-curl": "*"
},
"autoload": {
Expand Down
2 changes: 2 additions & 0 deletions src/HupunClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -349,10 +349,12 @@ public function execute($request, $params, $method = 'post', $bestUrl = null)
$respWellFormed = true;
}
} elseif ('xml' == $this->format) {
$boolPreviousValue = libxml_disable_entity_loader(true);
$respObject = @simplexml_load_string($resp);
if (false !== $respObject) {
$respWellFormed = true;
}
libxml_disable_entity_loader($boolPreviousValue);
}

// 返回的 HTTP 文本不是标准 JSON 或者 XML,记下错误日志
Expand Down

0 comments on commit 1cc80b8

Please sign in to comment.