...
|
...
|
@@ -68,15 +68,13 @@ class Client extends Base |
|
|
*/
|
|
|
public function participate_activitie(){
|
|
|
$activity_id=$this->postParam['id'];
|
|
|
$page = $this->request->post('page', 1);
|
|
|
$total = $this->request->post('total', 10);
|
|
|
$where['type']=1;
|
|
|
$where['verification_activity_id']=$activity_id;
|
|
|
|
|
|
$user=Db::name("verification_order")
|
|
|
->where($where)
|
|
|
->field('name,createtime')
|
|
|
->paginate($total, false, ['page' => $page])
|
|
|
->select()
|
|
|
->toArray();
|
|
|
if(!empty($user['data'])){
|
|
|
for ($i=0;$i<count($user['data']);$i++){
|
...
|
...
|
@@ -112,7 +110,6 @@ class Client extends Base |
|
|
$industry=$this->postParam['industry'];
|
|
|
$address=$this->postParam['address'];
|
|
|
$verification_activity_id=$this->postParam['id'];
|
|
|
$user_id=$this->auth->id;
|
|
|
$data=[
|
|
|
'verification_store_id'=>$verification_store_id,
|
|
|
'name'=>$name,
|
...
|
...
|
@@ -120,7 +117,7 @@ class Client extends Base |
|
|
'industry'=>$industry,
|
|
|
'address'=>$address,
|
|
|
'verification_activity_id'=>$verification_activity_id,
|
|
|
'user_id'=>$user_id
|
|
|
'user_id'=>$this->auth->id
|
|
|
];
|
|
|
$res=Db::name('verification_hold_activity')->insertGetId($data);
|
|
|
if($res){
|
...
|
...
|
@@ -296,7 +293,7 @@ class Client extends Base |
|
|
->where($where)
|
|
|
->field($field)
|
|
|
->find();
|
|
|
|
|
|
|
|
|
if(!empty($receive)){
|
|
|
$receive['qr_code'] = !empty($receive['qr_code'])?request()->domain().$receive['qr_code']:'';
|
|
|
$receive['image'] = !empty($receive['image'])?request()->domain().$receive['image']:'';
|
...
|
...
|
@@ -384,7 +381,7 @@ class Client extends Base |
|
|
$item['closetime'] = date("Y-m-d",$item['closetime']);
|
|
|
return $item;
|
|
|
});
|
|
|
|
|
|
|
|
|
return $this->success('',$data);
|
|
|
}
|
|
|
|
...
|
...
|
|