absss
absss
``` proto.sendRegisterCode = function (email) { if (_.isEmpty(email)) { return Promise.reject(new AppError.AppError("请您输入邮箱地址")); } return models.Users.findOne({where: {email: email}}) .then((u) => { if (u) { throw new AppError.AppError(`"${email}" 已经注册过,请更换邮箱注册`); } }) .then(()...
``` return packageManager.parseReqFile(req) .then((data) => { throw new AppError.AppError("upload file type is invalidate"); if (data.package.type != "application/zip") { log.debug(`upload file type is invlidate`, data.package); } ``` 直接丢出异常是个啥意思?正常的请求无法通过
JJStockView第158处复用有问题, 重复调用 reloadStockView 会创建多个titleView,建议改成: ``` -(UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section { UIView *headerView = [self.stockTableView dequeueReusableHeaderFooterViewWithIdentifier:@"headView"]; if (!headerView) { headerView = [[UITableViewHeaderFooterView alloc] initWithReuseIdentifier:@"headView"]; headerView.frame = CGRectMake(0, 0, self.bounds.size.width, 40); headerView.backgroundColor...