@@ -29,8 +29,8 @@ module.exports = options => {
if (ObjectId.isValid(last)) word = 'update';
else {
word = 'create';
- id = _.get(ctx.body, 'data._id');
}
+ id = _.get(ctx.body, 'data._id');
const nd = await addRecord(ctx, options, { id, method: word });
ctx.body.data = nd;
@@ -31,7 +31,6 @@ class PatentapplyService extends CrudService {
return await this.record({ id, method: status, remark });
async record({ id, method, remark }) {
- console.log(id, method);
let word = '';
switch (`${method}`) {
case 'create':