mirror of
https://github.com/ZSCNetSupportDept/WechatTicketSystem.git
synced 2025-10-28 23:55:04 +08:00
update to j8
This commit is contained in:
@@ -1,75 +0,0 @@
|
|||||||
<!DOCTYPE html><html><head><title>Authorize</title><meta charset='utf-8'><link href='https://dn-maxiang.qbox.me/res-min/themes/marxico.css' rel='stylesheet'></head><body><div id='preview-contents' class='note-content'>
|
|
||||||
<div id="wmd-preview" class="preview-content"></div>
|
|
||||||
<div id="wmd-preview-section-1" class="wmd-preview-section preview-content">
|
|
||||||
|
|
||||||
</div><div id="wmd-preview-section-2" class="wmd-preview-section preview-content">
|
|
||||||
|
|
||||||
<h1 id="authorize">Authorize</h1>
|
|
||||||
|
|
||||||
<div><div class="toc"><div class="toc">
|
|
||||||
<ul>
|
|
||||||
<li><a href="#authorize">Authorize</a><ul>
|
|
||||||
<li><a href="#url">URL</a></li>
|
|
||||||
<li><a href="#method">Method</a></li>
|
|
||||||
<li><a href="#parameters">Parameters</a></li>
|
|
||||||
<li><a href="#response">Response</a><ul>
|
|
||||||
<li><a href="#format">Format</a></li>
|
|
||||||
<li><a href="#response-code">Response Code</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li><a href="#signature">Signature</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div><div id="wmd-preview-section-329" class="wmd-preview-section preview-content">
|
|
||||||
|
|
||||||
<h2 id="url">URL</h2>
|
|
||||||
|
|
||||||
<hr>
|
|
||||||
|
|
||||||
<p><a href="http://sola.love/ww/api/authorize" target="_blank">http://sola.love/ww/api/authorize</a></p></div><div id="wmd-preview-section-312" class="wmd-preview-section preview-content">
|
|
||||||
|
|
||||||
<h2 id="method">Method</h2>
|
|
||||||
|
|
||||||
<hr>
|
|
||||||
|
|
||||||
<p>POST</p></div><div id="wmd-preview-section-304" class="wmd-preview-section preview-content">
|
|
||||||
|
|
||||||
<h2 id="parameters">Parameters</h2>
|
|
||||||
|
|
||||||
<hr>
|
|
||||||
|
|
||||||
<ul><li><code>wechat</code> Wechat ID</li>
|
|
||||||
</ul></div><div id="wmd-preview-section-278" class="wmd-preview-section preview-content">
|
|
||||||
|
|
||||||
<h2 id="response">Response</h2>
|
|
||||||
|
|
||||||
<hr></div><div id="wmd-preview-section-225" class="wmd-preview-section preview-content">
|
|
||||||
|
|
||||||
<h3 id="format">Format</h3>
|
|
||||||
|
|
||||||
<p>JSON</p>
|
|
||||||
|
|
||||||
</div><div id="wmd-preview-section-271" class="wmd-preview-section preview-content">
|
|
||||||
|
|
||||||
<h3 id="response-code">Response Code</h3>
|
|
||||||
|
|
||||||
<ul><li>Success <br>
|
|
||||||
<ul>
|
|
||||||
<li><code>0</code> OK</li></ul></li>
|
|
||||||
<li>Error <br>
|
|
||||||
<ul>
|
|
||||||
<li><code>-1</code> PARAMETER_REQUIRED</li>
|
|
||||||
<li><code>-9</code> AUTHORIZE_FAILED</li>
|
|
||||||
<li><code>-21</code> REQUEST_EXPIRED</li></ul></li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<hr></div><div id="wmd-preview-section-371" class="wmd-preview-section preview-content">
|
|
||||||
|
|
||||||
<h1 id="signature">Signature</h1>
|
|
||||||
|
|
||||||
<p>Created by Sola on 12/3/2015</p></div><div id="wmd-preview-section-footnotes" class="preview-content"></div></div></body></html>
|
|
||||||
151
docs/绑定微信请求.html
151
docs/绑定微信请求.html
@@ -1,151 +0,0 @@
|
|||||||
<!DOCTYPE html><html><head><title>绑定微信请求 V1.3</title><meta charset='utf-8'><link href='https://dn-maxiang.qbox.me/res-min/themes/marxico.css' rel='stylesheet'></head><body><div id='preview-contents' class='note-content'>
|
|
||||||
<div id="wmd-preview" class="preview-content"></div>
|
|
||||||
<div id="wmd-preview-section-1" class="wmd-preview-section preview-content">
|
|
||||||
|
|
||||||
</div><div id="wmd-preview-section-36" class="wmd-preview-section preview-content">
|
|
||||||
|
|
||||||
<h1 id="绑定微信请求-v13">绑定微信请求 V1.3</h1>
|
|
||||||
|
|
||||||
<blockquote>
|
|
||||||
<p>Edition : (1.3)2015/12/04 </p>
|
|
||||||
</blockquote>
|
|
||||||
|
|
||||||
</div><div id="wmd-preview-section-37" class="wmd-preview-section preview-content">
|
|
||||||
|
|
||||||
<h2 id="绑定">绑定</h2>
|
|
||||||
|
|
||||||
<hr>
|
|
||||||
|
|
||||||
</div><div id="wmd-preview-section-38" class="wmd-preview-section preview-content">
|
|
||||||
|
|
||||||
<h3 id="url">URL</h3>
|
|
||||||
|
|
||||||
<p><a href="http://sola.love" target="_blank">http://sola.love</a></p>
|
|
||||||
|
|
||||||
</div><div id="wmd-preview-section-39" class="wmd-preview-section preview-content">
|
|
||||||
|
|
||||||
<h3 id="method">Method</h3>
|
|
||||||
|
|
||||||
<p>POST</p>
|
|
||||||
|
|
||||||
</div><div id="wmd-preview-section-40" class="wmd-preview-section preview-content">
|
|
||||||
|
|
||||||
<h3 id="params">Params</h3>
|
|
||||||
|
|
||||||
<ul><li><code>wechatid</code> <strong>string</strong> 用户微信ID</li>
|
|
||||||
<li><code>name</code> <strong>string</strong> 姓名</li>
|
|
||||||
<li><code>sid</code> <strong>string</strong> 学号</li>
|
|
||||||
<li><code>isp</code> <strong>integer</strong> ISP的代码</li>
|
|
||||||
<li><code>username</code> <strong>string</strong> 宽带帐号</li>
|
|
||||||
<li><code>block</code> <strong>integer</strong> 片区代码</li>
|
|
||||||
<li><code>room</code> <strong>integer</strong> 宿舍房号 </li>
|
|
||||||
<li><code>phone</code> <strong>string</strong> 手机号码</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
</div><div id="wmd-preview-section-41" class="wmd-preview-section preview-content">
|
|
||||||
|
|
||||||
<h3 id="more">More</h3>
|
|
||||||
|
|
||||||
</div><div id="wmd-preview-section-42" class="wmd-preview-section preview-content">
|
|
||||||
|
|
||||||
<h4 id="isp代码">ISP代码</h4>
|
|
||||||
|
|
||||||
<ul><li>电信 <code>1</code></li>
|
|
||||||
<li>联通 <code>2</code></li>
|
|
||||||
<li>移动 <code>3</code></li>
|
|
||||||
<li>其他 <code>4</code></li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
</div><div id="wmd-preview-section-43" class="wmd-preview-section preview-content">
|
|
||||||
|
|
||||||
<h4 id="片区代码">片区代码</h4>
|
|
||||||
|
|
||||||
<ul><li>岐头生活区 <br>
|
|
||||||
<ul>
|
|
||||||
<li>18栋 <code>10</code></li>
|
|
||||||
<li>19栋 <code>11</code></li>
|
|
||||||
<li>16栋 <code>12</code></li>
|
|
||||||
<li>17栋 <code>13</code></li></ul></li>
|
|
||||||
<li>北门生活区 <br>
|
|
||||||
<ul>
|
|
||||||
<li>7栋 <code>20</code></li>
|
|
||||||
<li>8栋 <code>21</code></li>
|
|
||||||
<li>9栋 <code>22</code></li>
|
|
||||||
<li>10栋 <code>23</code></li>
|
|
||||||
<li>11栋 <code>24</code></li></ul></li>
|
|
||||||
<li>东门生活区 <br>
|
|
||||||
<ul>
|
|
||||||
<li>12栋 <code>30</code></li>
|
|
||||||
<li>13栋 <code>31</code></li>
|
|
||||||
<li>14栋 <code>32</code></li>
|
|
||||||
<li>15栋 <code>33</code></li></ul></li>
|
|
||||||
<li>香晖苑 <br>
|
|
||||||
<ul>
|
|
||||||
<li>A <code>40</code></li>
|
|
||||||
<li>B <code>41</code></li>
|
|
||||||
<li>C <code>42</code></li>
|
|
||||||
<li>D <code>43</code></li></ul></li>
|
|
||||||
<li>凤翔生活区 <br>
|
|
||||||
<ul>
|
|
||||||
<li>1栋 <code>50</code></li>
|
|
||||||
<li>2栋 <code>51</code></li>
|
|
||||||
<li>3栋 <code>52</code></li>
|
|
||||||
<li>4栋 <code>53</code></li>
|
|
||||||
<li>5栋 <code>54</code></li>
|
|
||||||
<li>6栋 <code>55</code></li></ul></li>
|
|
||||||
<li>东门区 <br>
|
|
||||||
<ul>
|
|
||||||
<li>20栋 <code>60</code></li>
|
|
||||||
<li>21栋 <code>61</code></li></ul></li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
</div><div id="wmd-preview-section-44" class="wmd-preview-section preview-content">
|
|
||||||
|
|
||||||
<h2 id="绑定结果页">绑定结果页</h2>
|
|
||||||
|
|
||||||
<hr>
|
|
||||||
|
|
||||||
</div><div id="wmd-preview-section-45" class="wmd-preview-section preview-content">
|
|
||||||
|
|
||||||
<h3 id="url-1">URL</h3>
|
|
||||||
|
|
||||||
<p><a href="http://topaz.sinaapp.com/nm/result.html" target="_blank">http://topaz.sinaapp.com/nm/result.html</a></p>
|
|
||||||
|
|
||||||
</div><div id="wmd-preview-section-46" class="wmd-preview-section preview-content">
|
|
||||||
|
|
||||||
<h3 id="method-1">Method</h3>
|
|
||||||
|
|
||||||
<p>GET</p>
|
|
||||||
|
|
||||||
</div><div id="wmd-preview-section-47" class="wmd-preview-section preview-content">
|
|
||||||
|
|
||||||
<h3 id="params-1">Params</h3>
|
|
||||||
|
|
||||||
<ul><li><code>type</code> <strong>integer</strong> 绑定结果类型</li>
|
|
||||||
<li><code>msg</code> <strong>string</strong> 绑定结果说明</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
</div><div id="wmd-preview-section-48" class="wmd-preview-section preview-content">
|
|
||||||
|
|
||||||
<h3 id="more-1">More</h3>
|
|
||||||
|
|
||||||
</div><div id="wmd-preview-section-49" class="wmd-preview-section preview-content">
|
|
||||||
|
|
||||||
<h4 id="结果类型">结果类型</h4>
|
|
||||||
|
|
||||||
<ul><li>失败 <code>0</code></li>
|
|
||||||
<li>成功 <code>1</code></li>
|
|
||||||
<li><del>警告 <code>-1</code></del>(<em>不推荐使用</em>)</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
</div><div id="wmd-preview-section-50" class="wmd-preview-section preview-content">
|
|
||||||
|
|
||||||
<h2 id="author">Author</h2>
|
|
||||||
|
|
||||||
<p>LiuYue(hangxingliu)</p>
|
|
||||||
|
|
||||||
</div><div id="wmd-preview-section-51" class="wmd-preview-section preview-content">
|
|
||||||
|
|
||||||
<h2 id="date">Date</h2>
|
|
||||||
|
|
||||||
<p>2015/12/04</p></div><div id="wmd-preview-section-footnotes" class="preview-content"></div></div></body></html>
|
|
||||||
18
pom.xml
18
pom.xml
@@ -11,9 +11,9 @@
|
|||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<java.version>1.7</java.version>
|
<java.version>1.8</java.version>
|
||||||
<source>1.7</source>
|
<source>1.8</source>
|
||||||
<target>1.7</target>
|
<target>1.8</target>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
@@ -23,8 +23,8 @@
|
|||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
<version>3.3</version>
|
<version>3.3</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<source>1.7</source>
|
<source>1.8</source>
|
||||||
<target>1.7</target>
|
<target>1.8</target>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
@@ -116,6 +116,12 @@
|
|||||||
<groupId>org.hibernate.javax.persistence</groupId>
|
<groupId>org.hibernate.javax.persistence</groupId>
|
||||||
<artifactId>hibernate-jpa-2.1-api</artifactId>
|
<artifactId>hibernate-jpa-2.1-api</artifactId>
|
||||||
<version>1.0.0.Final</version>
|
<version>1.0.0.Final</version>
|
||||||
</dependency></dependencies>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>de.svenkubiak</groupId>
|
||||||
|
<artifactId>jBCrypt</artifactId>
|
||||||
|
<version>0.4</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
27
src/test/java/love/sola/netsupport/wechat/TestEncrypt.java
Normal file
27
src/test/java/love/sola/netsupport/wechat/TestEncrypt.java
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
package love.sola.netsupport.wechat;
|
||||||
|
|
||||||
|
import org.junit.Test;
|
||||||
|
import org.mindrot.jbcrypt.BCrypt;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ***********************************************
|
||||||
|
* Created by Sola on 2015/12/6.
|
||||||
|
* Don't modify this source without my agreement
|
||||||
|
* ***********************************************
|
||||||
|
*/
|
||||||
|
public class TestEncrypt {
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test() {
|
||||||
|
String hash = BCrypt.hashpw("mypasswordhere", BCrypt.gensalt());
|
||||||
|
System.out.println("hash = " + hash);
|
||||||
|
System.out.println("BCrypt.checkpw(\"mypasswordhere\",hash) = " + BCrypt.checkpw("mypasswordhere", hash));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testChk() {
|
||||||
|
String hash = "$2a$10$RCXxfEygwHQeF4BKjx5Uwu/C72HqoCN.jKpNSNdwizcy7m301C9Am";
|
||||||
|
System.out.println("BCrypt.checkpw(\"mypasswordhere\",hash) = " + BCrypt.checkpw("mypasswordhere", hash));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user