|
|
@ -1,23 +1,5 @@ |
|
|
|
package com.hai.config; |
|
|
|
package com.hai.config; |
|
|
|
|
|
|
|
|
|
|
|
import org.apache.commons.codec.digest.DigestUtils; |
|
|
|
|
|
|
|
import org.apache.http.HttpEntity; |
|
|
|
|
|
|
|
import org.apache.http.NameValuePair; |
|
|
|
|
|
|
|
import org.apache.http.client.ClientProtocolException; |
|
|
|
|
|
|
|
import org.apache.http.client.config.RequestConfig; |
|
|
|
|
|
|
|
import org.apache.http.client.entity.UrlEncodedFormEntity; |
|
|
|
|
|
|
|
import org.apache.http.client.methods.*; |
|
|
|
|
|
|
|
import org.apache.http.client.utils.URLEncodedUtils; |
|
|
|
|
|
|
|
import org.apache.http.impl.client.CloseableHttpClient; |
|
|
|
|
|
|
|
import org.apache.http.impl.client.HttpClients; |
|
|
|
|
|
|
|
import org.apache.http.message.BasicNameValuePair; |
|
|
|
|
|
|
|
import org.apache.http.util.EntityUtils; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.io.IOException; |
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
|
|
|
|
import java.util.Arrays; |
|
|
|
|
|
|
|
import java.util.HashMap; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 商鹏打印机模板 |
|
|
|
* 商鹏打印机模板 |
|
|
|
* @author hurui |
|
|
|
* @author hurui |
|
|
@ -59,7 +41,7 @@ public class SpPrinterTemplate { |
|
|
|
"<L1>加油金额</L1><BR>" + |
|
|
|
"<L1>加油金额</L1><BR>" + |
|
|
|
"<L1>¥" + orderPrice + "元</L1><BR>" + |
|
|
|
"<L1>¥" + orderPrice + "元</L1><BR>" + |
|
|
|
"------------------------------<BR>" + |
|
|
|
"------------------------------<BR>" + |
|
|
|
"<C>来"嗨森逛“;开心又省钱</C>"; |
|
|
|
"<C><B>来"嗨森逛“;开心又省钱</B></C>"; |
|
|
|
return str; |
|
|
|
return str; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -98,7 +80,7 @@ public class SpPrinterTemplate { |
|
|
|
"<L1>加油金额</L1><BR>" + |
|
|
|
"<L1>加油金额</L1><BR>" + |
|
|
|
"<L1>¥" + orderPrice + "元</L1><BR>" + |
|
|
|
"<L1>¥" + orderPrice + "元</L1><BR>" + |
|
|
|
"------------------------------<BR>" + |
|
|
|
"------------------------------<BR>" + |
|
|
|
"<C>来"嗨森逛“;开心又省钱</C>"; |
|
|
|
"<C><B>来"嗨森逛“;开心又省钱</B></C>"; |
|
|
|
return str; |
|
|
|
return str; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|