1
This commit is contained in:
parent
66431bba67
commit
db7585b900
@ -131,7 +131,7 @@ token:
|
|||||||
# 令牌密钥
|
# 令牌密钥
|
||||||
secret: abcdefghijklmnopqrstuvwxyz
|
secret: abcdefghijklmnopqrstuvwxyz
|
||||||
# 令牌有效期(默认30分钟)
|
# 令牌有效期(默认30分钟)
|
||||||
expireTime: 2880
|
expireTime: 1025600
|
||||||
|
|
||||||
# MyBatis配置
|
# MyBatis配置
|
||||||
mybatis:
|
mybatis:
|
||||||
|
@ -39,7 +39,8 @@ public class WxUtil {
|
|||||||
String resJson = HttpUtils.sendGet("https://api.weixin.qq.com/cgi-bin/token", HttpUtils.getParam(getParam));
|
String resJson = HttpUtils.sendGet("https://api.weixin.qq.com/cgi-bin/token", HttpUtils.getParam(getParam));
|
||||||
wxToken = JSONObject.parseObject(resJson, WxToken.class);
|
wxToken = JSONObject.parseObject(resJson, WxToken.class);
|
||||||
wxToken.setExpiresTime(wxToken.getExpires_in() * 1000 + System.currentTimeMillis());
|
wxToken.setExpiresTime(wxToken.getExpires_in() * 1000 + System.currentTimeMillis());
|
||||||
redisCache.setCacheObject(TOKENKEY, wxToken.getAccess_token(), wxToken.getExpires_in(), TimeUnit.MINUTES);
|
redisCache.setCacheObject(TOKENKEY, wxToken.getAccess_token(), wxToken.getExpires_in(), TimeUnit.SECONDS);
|
||||||
|
token = wxToken.getAccess_token();
|
||||||
}
|
}
|
||||||
return token;
|
return token;
|
||||||
// if (wxToken == null || System.currentTimeMillis() > wxToken.getExpiresTime() - 60000){
|
// if (wxToken == null || System.currentTimeMillis() > wxToken.getExpiresTime() - 60000){
|
||||||
|
@ -185,7 +185,7 @@
|
|||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="日结单价" prop="dayPrice" label-width="100px">
|
<el-form-item label="日结单价" prop="dayPrice" label-width="100px">
|
||||||
<el-input v-model="form.dayPrice" placeholder="请输入日结单价" style="width: 282px;" /> 元
|
<el-input v-model="form.dayPrice" placeholder="请输入日结单价" oninput="value=value.replace(/[^0-9.]/g,'').replace(/^\./g,'0.').replace(/(\.\d{2})\d+$/g,'$1')" style="width: 282px;" /> 元
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="用工数量" prop="useNum" label-width="100px">
|
<el-form-item label="用工数量" prop="useNum" label-width="100px">
|
||||||
<el-input v-model="form.useNum" placeholder="请输入用工数量" style="width: 300px;" />
|
<el-input v-model="form.useNum" placeholder="请输入用工数量" style="width: 300px;" />
|
||||||
|
Loading…
Reference in New Issue
Block a user