作者 郭文星

'213141'

@@ -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 /**