1234567891011121314151617181920 |
- import AccountModel from "../../data/Account/AccountModel";
- export default class SignUtil {
- public static canSign(){
- let canSign = false;
- let timeStamp = AccountModel.singleInstance.sign_timestamp;
- let times = AccountModel.singleInstance.sign_times;
- if (times == 7){
- return false;
- }
- if (!timeStamp) {
- canSign = true;
- } else if (new Date(timeStamp).getDate() != new Date().getDate()) {
- canSign = true;
- }
- return canSign;
- }
- }
|