|
@@ -50,7 +50,7 @@ class ApplyController extends AdminController
|
|
|
$sql = "x_u.id,x_u.name,x_u.phone,x_u.pv,x_u.uv,x_u.created_at,
|
|
|
count(x_s.id) as count";
|
|
|
$model = WxUser::from('wx_users as u')
|
|
|
- ->leftJoin('wx_signups as s', 's.m_id', '=', 'u.id')
|
|
|
+ ->leftJoin('wx_signups as s', 's.p_id', '=', 'u.id')
|
|
|
->where($where)
|
|
|
->where(function ($q) use ($search){
|
|
|
if($search){
|
|
@@ -95,7 +95,7 @@ class ApplyController extends AdminController
|
|
|
|
|
|
if (empty($id)) return $this->apiResponseError( '必要参数缺失');
|
|
|
|
|
|
- $where = [['m_id',$id]];
|
|
|
+ $where = [['p_id',$id]];
|
|
|
|
|
|
$list = WxSignup::where($where)
|
|
|
->select(['id','name','phone','created_at'])
|