作者 jiawen
1 个管道 的构建 通过 耗费 0 秒

钱包列表加微信头像

@@ -275,7 +275,7 @@ class ShareController extends RestBaseController @@ -275,7 +275,7 @@ class ShareController extends RestBaseController
275 * @return current_page:当前页 275 * @return current_page:当前页
276 * @return last_page:尾页 276 * @return last_page:尾页
277 * @return data:对象信息@! 277 * @return data:对象信息@!
278 - * @data card_id:名片id name:名片名称 money:总佣金 278 + * @data card_id:名片id name:名片名称 money:总佣金 avatar:头像
279 */ 279 */
280 public function getMyWallet() { 280 public function getMyWallet() {
281 $per_page = !empty($data['per_page']) ? : config('per_page'); 281 $per_page = !empty($data['per_page']) ? : config('per_page');
@@ -283,7 +283,7 @@ class ShareController extends RestBaseController @@ -283,7 +283,7 @@ class ShareController extends RestBaseController
283 ->alias('m') 283 ->alias('m')
284 ->join('card c','m.card_id = c.id') 284 ->join('card c','m.card_id = c.id')
285 ->where(['m.user_id' => $this->userId]) 285 ->where(['m.user_id' => $this->userId])
286 - ->field('m.card_id,m.money,c.name') 286 + ->field('m.card_id,m.money,c.name,u.avatar')
287 ->order('m.create_time desc') 287 ->order('m.create_time desc')
288 ->paginate($per_page); 288 ->paginate($per_page);
289 if ($result === false) { 289 if ($result === false) {