作者 王智

baoxiu

... ... @@ -332,11 +332,9 @@ class Index extends Api
$level = Db::name('user')->where('id', $user_id)->value('level');
$arr = Db::name('baoxiudan')->where(['id' => $id])->find();
$xitong = Db::name('xitong')->where(['id' => $arr['system']])->value('xitong');
$zhandian = Db::name('user')
->alias('u')
->where(['u.id' => $user_id])
->join('zhandian z', 'z.id=u.zhandian_id')
->value('z.zhandian');
$zhandian = Db::name('zhandian')
->where(['id' => $arr['zhandian_id']])
->value('zhandian');
if (strstr($arr['images'], ',')) {
$avatars = explode(',', $arr['images']);
... ...