类 P10ssUtil

java.lang.Object
org.anyline.p10ss.util.P10ssUtil

public class P10ssUtil extends Object
  • 构造器详细资料

    • P10ssUtil

      public P10ssUtil(P10ssConfig config)
    • P10ssUtil

      public P10ssUtil(String key, org.anyline.entity.DataRow config)
  • 方法详细资料

    • getInstance

      public static P10ssUtil getInstance()
    • reg

      public static P10ssUtil reg(String key, org.anyline.entity.DataRow config)
    • getInstance

      public static P10ssUtil getInstance(String key)
    • getConfig

      public P10ssConfig getConfig()
    • getAccessToken

      public org.anyline.entity.DataRow getAccessToken()
    • getAccessToken

      public org.anyline.entity.DataRow getAccessToken(String code)
    • newAccessToken

      public org.anyline.entity.DataRow newAccessToken()
    • newAccessToken

      public org.anyline.entity.DataRow newAccessToken(String code)
    • refreshAccessToken

      public org.anyline.entity.DataRow refreshAccessToken(String refresh)
    • createAuthorizeCodeUrl

      public String createAuthorizeCodeUrl(String redirect, String state)
      获取用户授权码
      参数:
      redirect - 回调地址
      state - 状态保持
      返回:
      url url
    • addPrinter

      public void addPrinter(String code, String secret, String phone, String name) throws Exception
      自用模式 添加打印机
      参数:
      code - 打印机编号
      secret - 打印机密钥
      phone - phone
      name - name
      抛出:
      Exception - 异常 添加失败时异常
    • addPrinter

      public void addPrinter(String code, String secret) throws Exception
      抛出:
      Exception
    • print

      public org.anyline.entity.DataRow print(String machine, String order, String text) throws Exception
      文本打印
      参数:
      machine - machine
      order - order
      text - text
      返回:
      DataRow
      抛出:
      Exception - 异常 Exception