|
@@ -68,15 +68,13 @@ class Client extends Base |
|
@@ -68,15 +68,13 @@ class Client extends Base |
68
|
*/
|
68
|
*/
|
69
|
public function participate_activitie(){
|
69
|
public function participate_activitie(){
|
70
|
$activity_id=$this->postParam['id'];
|
70
|
$activity_id=$this->postParam['id'];
|
71
|
- $page = $this->request->post('page', 1);
|
|
|
72
|
- $total = $this->request->post('total', 10);
|
|
|
73
|
$where['type']=1;
|
71
|
$where['type']=1;
|
74
|
$where['verification_activity_id']=$activity_id;
|
72
|
$where['verification_activity_id']=$activity_id;
|
75
|
|
73
|
|
76
|
$user=Db::name("verification_order")
|
74
|
$user=Db::name("verification_order")
|
77
|
->where($where)
|
75
|
->where($where)
|
78
|
->field('name,createtime')
|
76
|
->field('name,createtime')
|
79
|
- ->paginate($total, false, ['page' => $page])
|
77
|
+ ->select()
|
80
|
->toArray();
|
78
|
->toArray();
|
81
|
if(!empty($user['data'])){
|
79
|
if(!empty($user['data'])){
|
82
|
for ($i=0;$i<count($user['data']);$i++){
|
80
|
for ($i=0;$i<count($user['data']);$i++){
|
|
@@ -112,7 +110,6 @@ class Client extends Base |
|
@@ -112,7 +110,6 @@ class Client extends Base |
112
|
$industry=$this->postParam['industry'];
|
110
|
$industry=$this->postParam['industry'];
|
113
|
$address=$this->postParam['address'];
|
111
|
$address=$this->postParam['address'];
|
114
|
$verification_activity_id=$this->postParam['id'];
|
112
|
$verification_activity_id=$this->postParam['id'];
|
115
|
- $user_id=$this->auth->id;
|
|
|
116
|
$data=[
|
113
|
$data=[
|
117
|
'verification_store_id'=>$verification_store_id,
|
114
|
'verification_store_id'=>$verification_store_id,
|
118
|
'name'=>$name,
|
115
|
'name'=>$name,
|
|
@@ -120,7 +117,7 @@ class Client extends Base |
|
@@ -120,7 +117,7 @@ class Client extends Base |
120
|
'industry'=>$industry,
|
117
|
'industry'=>$industry,
|
121
|
'address'=>$address,
|
118
|
'address'=>$address,
|
122
|
'verification_activity_id'=>$verification_activity_id,
|
119
|
'verification_activity_id'=>$verification_activity_id,
|
123
|
- 'user_id'=>$user_id
|
120
|
+ 'user_id'=>$this->auth->id
|
124
|
];
|
121
|
];
|
125
|
$res=Db::name('verification_hold_activity')->insertGetId($data);
|
122
|
$res=Db::name('verification_hold_activity')->insertGetId($data);
|
126
|
if($res){
|
123
|
if($res){
|
|
@@ -296,7 +293,7 @@ class Client extends Base |
|
@@ -296,7 +293,7 @@ class Client extends Base |
296
|
->where($where)
|
293
|
->where($where)
|
297
|
->field($field)
|
294
|
->field($field)
|
298
|
->find();
|
295
|
->find();
|
299
|
-
|
296
|
+
|
300
|
if(!empty($receive)){
|
297
|
if(!empty($receive)){
|
301
|
$receive['qr_code'] = !empty($receive['qr_code'])?request()->domain().$receive['qr_code']:'';
|
298
|
$receive['qr_code'] = !empty($receive['qr_code'])?request()->domain().$receive['qr_code']:'';
|
302
|
$receive['image'] = !empty($receive['image'])?request()->domain().$receive['image']:'';
|
299
|
$receive['image'] = !empty($receive['image'])?request()->domain().$receive['image']:'';
|
|
@@ -384,7 +381,7 @@ class Client extends Base |
|
@@ -384,7 +381,7 @@ class Client extends Base |
384
|
$item['closetime'] = date("Y-m-d",$item['closetime']);
|
381
|
$item['closetime'] = date("Y-m-d",$item['closetime']);
|
385
|
return $item;
|
382
|
return $item;
|
386
|
});
|
383
|
});
|
387
|
-
|
384
|
+
|
388
|
return $this->success('',$data);
|
385
|
return $this->success('',$data);
|
389
|
}
|
386
|
}
|
390
|
|
387
|
|