@@ -22,4 +22,22 @@ class MemberPaymentModel extends BaseModel
// 设置数据表
protected $table = 'member_payment';
+ /**
+ * 获取数据信息
+ * @param int $id 用户ID
+ * @return array|string
+ */
+ public function getInfo($id)
+ {
+ $info = $this->getOne([['id'=> $id]]); // TODO: Change the autogenerated stub
+
+ if ($info) {
+ // 头像
+ if ($info['logo']) {
+ $info['logo'] = get_image_url($info['logo']);
+ }
+ return $info;
}