|
@@ -23,18 +23,17 @@ $config['token'] = array
|
|
|
),
|
|
|
);
|
|
|
|
|
|
-$config['card'] = array
|
|
|
+$config['reg'] = array
|
|
|
(
|
|
|
- 'name' => '发放优惠券',
|
|
|
+ 'name' => '注册客户',
|
|
|
'method' => 'post',
|
|
|
'json' => false,
|
|
|
- 'url' => 'https://open.youzan.com/api/oauthentry/youzan.ump.coupon/3.0.0/take?',
|
|
|
+ 'url' => 'https://open.youzan.com/api/oauthentry/youzan.scrm.customer/3.0.0/create?',
|
|
|
'param' => array
|
|
|
(
|
|
|
'access_token' => 'token',
|
|
|
- 'coupon_group_id' => 'coupon_group_id',
|
|
|
+ 'customer_create' => 'customer_create',
|
|
|
'mobile' => 'mobile',
|
|
|
- 'weixin_openid' => 'weixin_openid',
|
|
|
),
|
|
|
//针对一些返回的名称,做转换
|
|
|
'response' => array
|
|
@@ -43,17 +42,18 @@ $config['card'] = array
|
|
|
),
|
|
|
);
|
|
|
|
|
|
-$config['get_msg'] = array
|
|
|
+$config['card'] = array
|
|
|
(
|
|
|
- 'name' => '获取帐号下已存在的模板列表',
|
|
|
+ 'name' => '发放优惠券',
|
|
|
'method' => 'post',
|
|
|
- 'json' => true,
|
|
|
- 'url' => 'https://api.weixin.qq.com/cgi-bin/wxopen/template/list?',
|
|
|
+ 'json' => false,
|
|
|
+ 'url' => 'https://open.youzan.com/api/oauthentry/youzan.ump.coupon/3.0.0/take?',
|
|
|
'param' => array
|
|
|
(
|
|
|
'access_token' => 'token',
|
|
|
- 'offset' => '0',
|
|
|
- 'count' => '20',
|
|
|
+ 'coupon_group_id' => 'coupon_group_id',
|
|
|
+ 'mobile' => 'mobile',
|
|
|
+ 'weixin_openid' => 'weixin_openid',
|
|
|
),
|
|
|
//针对一些返回的名称,做转换
|
|
|
'response' => array
|