fix bug
This commit is contained in:
@@ -66,10 +66,13 @@ class Donation
|
|||||||
$result['list'] = [];
|
$result['list'] = [];
|
||||||
echo $userid;
|
echo $userid;
|
||||||
$list = Db::name("order")->where(['user_id'=>$userid,'status'=>1])->where($where)->order("id desc")->limit(env("page_count"))->select()->toArray();
|
$list = Db::name("order")->where(['user_id'=>$userid,'status'=>1])->where($where)->order("id desc")->limit(env("page_count"))->select()->toArray();
|
||||||
print_r($list);
|
|
||||||
if(!empty($list)){
|
if(!empty($list)){
|
||||||
$appUser = getAllUsersMessage($list,"user_id","id,nickname");
|
$appUser = getAllUsersMessage($list,"user_id","id,nickname");
|
||||||
$studentUser = $this->getStudents($list);
|
$studentUser = $this->getStudents($list);
|
||||||
|
|
||||||
|
print_r($appUser);
|
||||||
|
print_r($studentUser);
|
||||||
|
|
||||||
foreach ($list as $key => $vo) {
|
foreach ($list as $key => $vo) {
|
||||||
$result['lastIndex'] = $vo['id'];
|
$result['lastIndex'] = $vo['id'];
|
||||||
$result["list"][] = [
|
$result["list"][] = [
|
||||||
|
|||||||
Reference in New Issue
Block a user