|
|
@@ -57,7 +57,7 @@ class ApplyController extends AdminController
|
|
|
->paginate(10);
|
|
|
|
|
|
foreach ($list as $value){
|
|
|
- $value['count'] = WxUser::where('p_id',$value['id'])->where('status',1)->count();
|
|
|
+ $value['count'] = WxSignup::where('m_id',$value['id'])->count();
|
|
|
}
|
|
|
|
|
|
return $this->apiResponseSuccess('获取信息成功', [
|
|
|
@@ -72,13 +72,13 @@ class ApplyController extends AdminController
|
|
|
* @return \Illuminate\Http\JsonResponse
|
|
|
*/
|
|
|
function getTotal(){
|
|
|
- $m_id = request()->input('m_id','');//用户id
|
|
|
+ $id = request()->input('id','');//用户id
|
|
|
|
|
|
- if (empty($m_id)) return $this->apiResponseError( '必要参数缺失');
|
|
|
+ if (empty($id)) return $this->apiResponseError( '必要参数缺失');
|
|
|
|
|
|
- $where = [['status',1], ['p_id',$m_id]];
|
|
|
+ $where = [['m_id',$id]];
|
|
|
|
|
|
- $list = WxUser::where($where)
|
|
|
+ $list = WxSignup::where($where)
|
|
|
->select(['id','name','phone','created_at'])
|
|
|
->paginate(10);
|
|
|
|