Commit 1bff106a authored by 杨培's avatar 杨培

Merge remote-tracking branch 'origin/master'

parents 591e9efe 8f89ba21
...@@ -27,7 +27,7 @@ class Task extends Client ...@@ -27,7 +27,7 @@ class Task extends Client
return self::call('task.trigger', [ return self::call('task.trigger', [
'scriptname' => $scriptName, 'scriptname' => $scriptName,
'ucid' => $uid, 'ucid' => $uid,
'autoApply' => $autoApply 'autoapply' => $autoApply
]); ]);
} }
......
...@@ -30,4 +30,16 @@ class User extends Client ...@@ -30,4 +30,16 @@ class User extends Client
return self::call('user.updateSync', compact('uid', 'data')); return self::call('user.updateSync', compact('uid', 'data'));
} }
/**
* 获取我的验证码数量
* @param $uid
* @return mixed
* @throws \internalApi\base\ApiException
* @throws \internalApi\base\ClientException
*/
public static function getMyCodeNum($uid)
{
return self::call('user.getMyCodeNum', compact('uid'));
}
} }
\ No newline at end of file
...@@ -118,4 +118,28 @@ class Member extends Client ...@@ -118,4 +118,28 @@ class Member extends Client
return self::call('member.getWechatInfoFromCode', compact('code')); return self::call('member.getWechatInfoFromCode', compact('code'));
} }
/**
* 获取用户扩展信息
* @param $uid
* @return mixed
* @throws \internalApi\base\ApiException
* @throws \internalApi\base\ClientException
*/
public static function getExt($uid)
{
return self::call('member.getExt', compact('uid'));
}
/**
* 更新用户扩展选项
* @param $uid
* @param string $option 选项 {share: '分享', comment: '评论', error_code: '故障码', course: '课程', worker_diary: '维修日记', like: '点赞'}
* @return mixed
* @throws \internalApi\base\ApiException
* @throws \internalApi\base\ClientException
*/
public static function updateExtOption($uid, $option)
{
return self::call('member.updateExtOption', compact('uid', 'option'));
}
} }
\ No newline at end of file
...@@ -94,4 +94,28 @@ class Order extends Client ...@@ -94,4 +94,28 @@ class Order extends Client
return self::call('order.verifyNotifyCode', compact('oid', 'code')); return self::call('order.verifyNotifyCode', compact('oid', 'code'));
} }
/**
* 获取用户的消费金额
* @param $uid
* @return mixed
* @throws \internalApi\base\ApiException
* @throws \internalApi\base\ClientException
*/
public static function getMonetary($uid)
{
return self::call('order.getMonetary', compact('uid'));
}
/**
* 获取用户购买课程的数量
* @param $uid
* @return mixed
* @throws \internalApi\base\ApiException
* @throws \internalApi\base\ClientException
*/
public static function getBuyCourseTotal($uid)
{
return self::call('order.getBuyCourseTotal', compact('uid'));
}
} }
\ No newline at end of file
...@@ -41,4 +41,16 @@ class User extends Client ...@@ -41,4 +41,16 @@ class User extends Client
return self::call('user.updateSync', compact('uid', 'data')); return self::call('user.updateSync', compact('uid', 'data'));
} }
/**
* 获取用户扩展信息
* @param $uid
* @return mixed
* @throws \internalApi\base\ApiException
* @throws \internalApi\base\ClientException
*/
public static function getExt($uid)
{
return self::call('user.getExt', compact('uid'));
}
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment