|
@@ -52,16 +52,18 @@ export default {
|
|
|
let stateTmp = context.state.funcs.find( e => e.func === d.func)
|
|
|
let index = funcData.findIndex( (e) => e.func == d.func)
|
|
|
let tmpExp = nT
|
|
|
- if(index != -1 && funcData[index].exp > nT) {
|
|
|
- tmpExp = funcData[index].exp
|
|
|
- }
|
|
|
-
|
|
|
- if(stateTmp.exp != null && stateTmp.exp > tmpExp) {
|
|
|
- tmpExp = stateTmp.exp
|
|
|
- }
|
|
|
|
|
|
switch (stateTmp?.func) {
|
|
|
case 'aigpt':
|
|
|
+
|
|
|
+ if(index != -1 && funcData[index].exp > nT) {
|
|
|
+ tmpExp = funcData[index].exp
|
|
|
+ }
|
|
|
+
|
|
|
+ if(stateTmp.exp != null && stateTmp.exp > tmpExp) {
|
|
|
+ tmpExp = stateTmp.exp
|
|
|
+ }
|
|
|
+
|
|
|
exp = d.exp
|
|
|
// 如果超過10碼調整為10碼
|
|
|
if(exp.toString().length > 10 ) exp = parseInt(exp/1000)
|
|
@@ -79,7 +81,7 @@ export default {
|
|
|
exp = d.exp
|
|
|
// 如果超過10碼調整為10碼
|
|
|
if(exp.toString().length > 10 ) exp = parseInt(exp/1000)
|
|
|
-
|
|
|
+
|
|
|
if((exp - tmpExp) > 0 && parseInt(stateTmp.para) < parseInt(d.para)) { // 檢查功能是否過期,沒過期比較大小值
|
|
|
stateTmp.para = d.para
|
|
|
stateTmp.exp = d.exp
|