Method: Fastlane::Actions::WorkWechatAction.image_http_body
- Defined in:
- lib/fastlane/plugin/work_wechat/actions/work_wechat_action.rb
.image_http_body(params) ⇒ Object
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 |
# File 'lib/fastlane/plugin/work_wechat/actions/work_wechat_action.rb', line 79 def self.image_http_body(params) image_base64 = params[:image_base64] image_md5 = params[:image_md5] body = {} body['msgtype'] = "image" # { # "msgtype": "image", # "image": { # "base64": "DATA", # "md5": "MD5" # } # } image = { 'base64' => image_base64,'md5' => image_md5 } body['image'] = image body.to_json end |