{"action":"opened","issue":{"url":"https://api.github.com/repos/node-webot/wechat-api/issues/140","repository_url":"https://api.github.com/repos/node-webot/wechat-api","labels_url":"https://api.github.com/repos/node-webot/wechat-api/issues/140/labels{/name}","comments_url":"https://api.github.com/repos/node-webot/wechat-api/issues/140/comments","events_url":"https://api.github.com/repos/node-webot/wechat-api/issues/140/events","html_url":"https://github.com/node-webot/wechat-api/issues/140","id":147377335,"number":140,"title":"微信小店创建商品接口无法成功创建商品","user":{"login":"ljw1811","id":1333189,"avatar_url":"https://avatars.githubusercontent.com/u/1333189?v=3","gravatar_id":"","url":"https://api.github.com/users/ljw1811","html_url":"https://github.com/ljw1811","followers_url":"https://api.github.com/users/ljw1811/followers","following_url":"https://api.github.com/users/ljw1811/following{/other_user}","gists_url":"https://api.github.com/users/ljw1811/gists{/gist_id}","starred_url":"https://api.github.com/users/ljw1811/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ljw1811/subscriptions","organizations_url":"https://api.github.com/users/ljw1811/orgs","repos_url":"https://api.github.com/users/ljw1811/repos","events_url":"https://api.github.com/users/ljw1811/events{/privacy}","received_events_url":"https://api.github.com/users/ljw1811/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-11T10:03:19Z","updated_at":"2016-04-11T10:03:19Z","closed_at":null,"body":"  goods = \r\n    \"product_base\": {\r\n        \"category_id\": [\"538070935\", \"537070989\"],\r\n        category: [\"538070935\", \"537070989\"]\r\n        \"property\": [{\r\n            \"id\": \"1075751904\",\r\n            \"vid\": \"1079786548\"\r\n        }, {\r\n            \"id\": \"1075751944\",\r\n            \"vid\": \"1079786697\"\r\n        }, {\r\n            \"id\": \"1075751945\",\r\n            \"vid\": \"1079786700\"\r\n        }, {\r\n            \"id\": \"1075752006\",\r\n            \"vid\": \"1079786819\"\r\n        }],\r\n        \"name\": \"testcreateproduct\",\r\n        'main_img': \"http://mmbiz.qpic.cn/mmbiz/GaoITh8rzzoSM7exFMDbNFsicZf9bOwF7quPXoxKfXnZ2WMGibxtMhOficQRxanm7UgibkNPVtzVBByWAO55xhuB4w/0?wx_fmt=jpeg\"\r\n        \"ori_price\": 29900,\r\n        \"img\": [\"http://mmbiz.qpic.cn/mmbiz/GaoITh8rzzoSM7exFMDbNFsicZf9bOwF7quPXoxKfXnZ2WMGibxtMhOficQRxanm7UgibkNPVtzVBByWAO55xhuB4w/0?wx_fmt=jpeg\", \"http://mmbiz.qpic.cn/mmbiz/GaoITh8rzzr3G3KzicsyJN4L2W2rsnrsuwvwD5sHHeSux3UXDON3MwwkkbkEpfK2bTgs21st98KAhj9j3cpTmbw/0?wx_fmt=png\"],\r\n        \"detail\": [\r\n          {\r\n            \"text\": \"test first\"\r\n          },\r\n          {\r\n            \"img\": \"http://mmbiz.qpic.cn/mmbiz/4whpV1VZl2iccsvYbHvnphkyGtnvjD3ul1UcLcwxrFdwTKYhH9Q5YZoCfX4Ncx655ZK6ibnlibCCErbKQtReySaVA/0\"\r\n          }\r\n        ],\r\n        \"buy_limit\": 0\r\n    },\r\n    \"sku_list\": [{\r\n        \"sku_id\": \"\",\r\n        \"price\": 1,\r\n        \"icon_url\": \"\",\r\n        \"product_code\": \"4serewer3\",\r\n        \"ori_price\": 29900,\r\n        \"quantity\": \"99999\"\r\n    }],\r\n    \"attrext\": {\r\n        \"location\": {\r\n            \"country\": \"中国\",\r\n            \"province\": \"北京\",\r\n            \"city\": \"海淀\",\r\n            \"address\": \"\"\r\n        },\r\n        \"isPostFree\": 1,\r\n        \"isHasReceipt\": \"0\",\r\n        \"isUnderGuaranty\": \"0\",\r\n        \"isSupportReplace\": 0\r\n    },\r\n    \"delivery_info\": {\r\n        \"template_id\": \"\",\r\n        \"delivery_type\": 0,\r\n        \"express\": [{\r\n            \"id\": \"10000027\",\r\n            \"price\": 0\r\n        }, {\r\n            \"id\": \"10000028\",\r\n            \"price\": 0\r\n        }, {\r\n            \"id\": \"10000029\",\r\n            \"price\": 0\r\n        }]\r\n    }\r\n\r\napi.createGoods goods, (err, result)->\r\n      if err\r\n        console.log \"createGoods err:\"\r\n        console.log err\r\n        console.log result\r\n        res.reply '稍后再试'\r\n        return\r\n\r\n\r\n控制台返回结果为：\r\ncreateGoods err:\r\n    { [WeChatAPIError: system error] name: 'WeChatAPIError', code: -1 }\r\n    { errcode: -1, errmsg: 'system error' }\r\n\r\n"}}