linyinfei

Results issues of linyinfei

There are a bug in the generateSpec.ts file. like ``` const schema = getParamSchema(headersMeta) as oa.ReferenceObject headers.push({ in: 'header', name: schema.$ref.split('/').pop() || '', required: isRequired(headersMeta, route), schema, }) ``` ```...

![image](https://user-images.githubusercontent.com/38553953/53734755-e1d4b500-3ebf-11e9-8053-4043a8420192.png)

![image](https://user-images.githubusercontent.com/38553953/58089845-664dee80-7bf8-11e9-8f44-e5e7192150a9.png) 上面的代码可能有问题,当hook等于onShareAppMessage时,hook重新赋值为onShare,同一页面再次转发时,上面的 fn = instance[hook]等于undefined,因为instance只有onShareAppMessage方法,没有onShare方法。