class Struggle::Logistic

Constants

Company
GuoJi_Company
URL
URL_loophold

Public Class Methods

send(id, com, nu, show="json", muti=1, order="desc") click to toggle source
# File lib/struggle/logistic.rb, line 9
def self.send(id, com, nu, show="json", muti=1, order="desc")
  respond = Http.new(URL).get({'id' => id, 'com' => com, 'nu' => nu, 'show' => show, 'muti' => muti, 'order' => order})
  puts respond.body
  return respond.body.blank? ? nil : JSON.parse(respond.body)
end
sendByLoophold(type, postid) click to toggle source
# File lib/struggle/logistic.rb, line 15
def self.sendByLoophold(type, postid)
  respond = Http.new(URL_loophold).post({'type' => type, 'postid' => postid})
  return respond.body.blank? ? nil : JSON.parse(respond.body)
end