# 低價二次開發 聯系微信/電話17854945210
修改```addons/ewei_shopv2/core/mobile/member/log.php```
把換成
~~~
$credit_condition換成如下
~~~
```
$credit_condition = ' and r.uniacid=' . $_W['uniacid'] . ' and r.credittype=\'credit2\' and r.openid = "' . $_W['openid'] . '" and r.num > 0 and remark not like \'%充值%\' order by r.createtime desc LIMIT ';
```
然后吧
if($uid>0) 去掉
完成如下
```
<?php
/*源碼來自 https://www.mulu.cm 幕鹿源碼*/
if (!defined('IN_IA')) {
exit('Access Denied');
}
class Log_EweiShopV2Page extends MobileLoginPage
{
public function main()
{
global $_W;
global $_GPC;
$_GPC['type'] = intval($_GPC['type']);
include $this->template();
}
public function get_list()
{
global $_W;
global $_GPC;
$type = intval($_GPC['type']);
$pindex = max(1, intval($_GPC['page']));
$psize = 10;
$apply_type = array(0 => '微信錢包', 2 => '支付寶', 3 => '銀行卡');
$condition = ' and openid=:openid and uniacid=:uniacid and type=:type';
$params = array(':uniacid' => $_W['uniacid'], ':openid' => $_W['openid'], ':type' => intval($_GPC['type']));
$uidinfo = M('member')->getInfo($_W['openid']);
$uid = $uidinfo['uid'];
$credit_condition = ' and r.uniacid=' . $_W['uniacid'] . ' and r.credittype=\'credit2\' and r.openid = "' . $_W['openid'] . '" and r.num > 0 and remark not like \'%充值%\' order by r.createtime desc LIMIT ';
$r = pdo_fetchall('select m.uid,m.mobile,m.nickname,r.remark title,r.num money,r.createtime from ' . tablename('ewei_shop_member_credit_record') . 'r left join ' . tablename('ewei_shop_member') . ' m on m.uid = r.uid where 1 ' . $credit_condition . ($pindex - 1) * $psize . ',' . $psize);
foreach ($r as &$item) {
$item['createtime'] = date('Y-m-d H:i:s', $item['createtime']);
$item['rechargetype'] = 'credit';
}
unset($item);
$list = pdo_fetchall('select * from ' . tablename('ewei_shop_member_log') . (' where 1 ' . $condition . ' order by createtime desc LIMIT ') . ($pindex - 1) * $psize . ',' . $psize, $params);
$total = pdo_fetchcolumn('select count(*) from ' . tablename('ewei_shop_member_log') . (' where 1 ' . $condition), $params);
foreach ($list as &$row) {
$row['createtime'] = date('Y-m-d H:i', $row['createtime']);
$row['typestr'] = $apply_type[$row['applytype']];
}
unset($row);
if (is_array($r)) {
$list = array_merge($r, $list);
}
show_json(1, array('list' => $list, 'total' => $total, 'pagesize' => $uid));
}
}
?>
```
- 【11.18更新】人人商城彈出框
- 人人常用方法
- 人人分銷【12.13更新】
- 分銷走的升級邏輯
- 獲取無限上級
- 【12.13更新】獲取無限下級
- 統計傘下客戶所有業績
- 關于會員
- 注冊走的邏輯
- 會員等級升級
- 關于商品
- 關于小程序
- 人人運費模板邏輯
- 訂單創建
- 導入導出
- 導入
- 導出
- 人人快速導出
- 修改收貨地址
- 人人客服消息
- 人人商城企業支付到零錢
- 人人商城DIY頁面
- 訂單【20201210更新】
- 支付邏輯【2020 12月10日更新】
- 訂單創建1【20201210更新】
- 訂單完成
- 人人權限修復
- 人人權限應用不出來修復
- 微信API
- 獲取access_token
- 獲取openid
- 修改公眾號推送消息
- 問題修復
- 打印機開發
- 拼團
- 訂單
- 拼團常用方法
- 余額詳細不詳細更改
- 修改菜單
- 關于微擎的事務處理邏輯
- 【11.20更新】余額記錄不顯示前端獲得的余額
- BUG集合【2020年12月11日更新】
- 海報黑屏或者出不來
- 人人商城多商戶無法上傳圖片解決辦法
- 秒殺超賣解決方案【20210225更新】