正在显示
1 个修改的文件
包含
5 行增加
和
1 行删除
@@ -52,7 +52,11 @@ class Client extends Api | @@ -52,7 +52,11 @@ class Client extends Api | ||
52 | $time=time(); | 52 | $time=time(); |
53 | $where["closetime"] = [">", $time]; | 53 | $where["closetime"] = [">", $time]; |
54 | $where["verification_store_id"] = ["=", $this->store_id]; | 54 | $where["verification_store_id"] = ["=", $this->store_id]; |
55 | - $activity=Db::name('verification_activity')->where($where)->find(); | 55 | + $activity=Db::name('verification_activity') |
56 | + ->alias('a') | ||
57 | + ->join('verification_store b','a.verification_store_id=b.id') | ||
58 | + ->field('a.*,b.address,b.name,b.phone') | ||
59 | + ->where($where)->find(); | ||
56 | $this->success('活动获取成功', $activity); | 60 | $this->success('活动获取成功', $activity); |
57 | } | 61 | } |
58 | /** | 62 | /** |
-
请 注册 或 登录 后发表评论