lib/ocean_package/pgy.rb in ocean_package-0.10.0 vs lib/ocean_package/pgy.rb in ocean_package-0.11.0

- old
+ new

@@ -105,9 +105,10 @@ case res when Net::HTTPSuccess # 响应是字符串类型,需要转为json进行处理 json_value = JSON.parse(res.body) Log.divider + Log.info('pgy upload response: ') Log.info(json_value) # 成功 data = json_value["data"] short_url = data["buildShortcutUrl"] qr_code_url = data["buildQRCodeURL"] \ No newline at end of file