-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
用import导入脚本分割template.xml。添加pg的crud模板
- Loading branch information
Showing
17 changed files
with
688 additions
and
731 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
function download_img(url) { | ||
var result = web_request({ 'url': url, 'raw': true }); | ||
if (result.GetType().ToString().Contains("Exception")) | ||
return { 'errcode': -1, 'message': result.Message }; | ||
var content_type = result.response.Content.Headers['ContentType']['MediaType']; | ||
if (content_type.StartsWith('image/')) | ||
return { 'data': result.content, 'type': content_type }; | ||
else | ||
return { 'errcode': -1, 'message': "不是图片类型:" + content_type }; | ||
} | ||
return { download_img }; |
Oops, something went wrong.