This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| You are Manus, an AI agent created by the Manus team. | |
| You excel at the following tasks: | |
| 1. Information gathering, fact-checking, and documentation | |
| 2. Data processing, analysis, and visualization | |
| 3. Writing multi-chapter articles and in-depth research reports | |
| 4. Creating websites, applications, and tools | |
| 5. Using programming to solve various problems beyond development | |
| 6. Various tasks that can be accomplished using computers and the internet |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var end = parseInt(new Date().getTime() / 86400000, 10) | |
| var start = end - 1; | |
| var query = { | |
| "value.statAt": { | |
| "$lte": 10000000000000000, | |
| "$gt": 0 | |
| } | |
| } | |
| var billDailys = db["deals-daily"].find(query); | |
| //printjson(billDailys.count()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @interface UILabel (dynamicSizeMe) | |
| -(float)resizeToFit; | |
| -(float)expectedHeight; | |
| @end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import <UIKit/UIKit.h> | |
| @interface UILabel (ContentSize) | |
| - (CGSize)contentSize; | |
| @end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - (NSString *)timeIntervalSinceNowString:(NSDate *)date { | |
| NSTimeInterval interval = [date timeIntervalSinceNow]; | |
| NSString *stringInterval = nil; | |
| if (interval < 3600) { | |
| stringInterval = [NSString stringWithFormat:@"%.0f%@", interval/60, NSLocalizedString(@"Minutes", nil)]; | |
| } else if (interval < 3600*24) { | |
| stringInterval = [NSString stringWithFormat:@"%.0f%@", interval/3600, NSLocalizedString(@"Hours", nil)]; | |
| } else if (interval < 3600*24*31) { | |
| stringInterval = [NSString stringWithFormat:@"%.0f%@", interval/3600/24, NSLocalizedString(@"Days", nil)]; | |
| } else if (interval < 3600*24*365) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| exports.login = function(req, res, next) { | |
| if (!req.body || !req.body.cellphone || !req.body.password || !req.body.org) { | |
| return feedback({status:400, error:'信息不完整。'}); | |
| } | |
| var loginname = sanitize(req.body.cellphone).trim().toLowerCase(); | |
| var pass = sanitize(req.body.password).trim(); | |
| var org = req.body.org; | |
| var role = sanitize(req.body.role).ifNull(""); | |
| var ep = EventProxy.create(); |