12345678910111213141516171819202122232425262728 |
- <?php
- /*
- |--------------------------------------------------------------------------
- | 用户管理
- |--------------------------------------------------------------------------
- */
- namespace Youzan\Src;
- use Dever;
- use Main\Lib\Wechat;
- use Main\Lib\Core;
- class User
- {
- # 注册客户
- public function reg()
- {
- $project_id = Dever::input('project_id');
- $param['mobile'] = Dever::input('mobile');
- $param['customer_create'] = array
- (
- 'name' => $param['mobile'],
- );
- $param['customer_create'] = json_encode($param['customer_create']);
- $wechat = new Wechat($project_id);
- return $wechat->curl('reg', $param);
- }
- }
|