|
@@ -24,7 +24,7 @@ class Business extends Base |
|
@@ -24,7 +24,7 @@ class Business extends Base |
24
|
$postParam = $this->request->param();
|
24
|
$postParam = $this->request->param();
|
25
|
$this->postParam = $postParam;
|
25
|
$this->postParam = $postParam;
|
26
|
parent::_initialize();
|
26
|
parent::_initialize();
|
27
|
- // $this->auth->id=3 ;//测试用
|
27
|
+ $this->auth->id=3 ;//测试用
|
28
|
$postParam = $this->request->param();
|
28
|
$postParam = $this->request->param();
|
29
|
$this->postParam = $postParam;
|
29
|
$this->postParam = $postParam;
|
30
|
if (empty($postParam['store_id'])) {
|
30
|
if (empty($postParam['store_id'])) {
|
|
@@ -40,7 +40,7 @@ class Business extends Base |
|
@@ -40,7 +40,7 @@ class Business extends Base |
40
|
$storewhere['user_id']=$this->auth->id;
|
40
|
$storewhere['user_id']=$this->auth->id;
|
41
|
$staff = Db::name("verification_staff")->where($storewhere)->find();
|
41
|
$staff = Db::name("verification_staff")->where($storewhere)->find();
|
42
|
if (empty($staff)) {
|
42
|
if (empty($staff)) {
|
43
|
- $this->error("暂无权限!");
|
43
|
+ $this->error("暂无权限!".$this->auth->id);
|
44
|
}
|
44
|
}
|
45
|
$this->staff = $staff;
|
45
|
$this->staff = $staff;
|
46
|
$this->staff_id = $staff['id'];
|
46
|
$this->staff_id = $staff['id'];
|
|
@@ -226,7 +226,7 @@ class Business extends Base |
|
@@ -226,7 +226,7 @@ class Business extends Base |
226
|
|
226
|
|
227
|
foreach ($order['receive'] as $key => $value) {
|
227
|
foreach ($order['receive'] as $key => $value) {
|
228
|
if($order['receive'][$key]['image']){
|
228
|
if($order['receive'][$key]['image']){
|
229
|
- $order['receive'][$key]['image']=$this->url_h5.$order['receive'][$key]['image'];
|
229
|
+ $order['receive'][$key]['image']=$this->imgUrl.$order['receive'][$key]['image'];
|
230
|
}
|
230
|
}
|
231
|
}
|
231
|
}
|
232
|
$this->success("查询成功",$order);
|
232
|
$this->success("查询成功",$order);
|
|
@@ -236,6 +236,21 @@ class Business extends Base |
|
@@ -236,6 +236,21 @@ class Business extends Base |
236
|
}
|
236
|
}
|
237
|
|
237
|
|
238
|
/**
|
238
|
/**
|
|
|
239
|
+ * 7.1修改订单电话 名称
|
|
|
240
|
+ */
|
|
|
241
|
+ public function updateorder(){
|
|
|
242
|
+ $id =$this->postParam['id'];
|
|
|
243
|
+ $name =$this->postParam['name'];
|
|
|
244
|
+ $phone =$this->postParam['phone'];
|
|
|
245
|
+ $res=Db::name('verification_order')->where(['id'=>$id])->update(['name'=>$name,'phone'=>$phone]);
|
|
|
246
|
+ if($res){
|
|
|
247
|
+ $this->success("修改成功");
|
|
|
248
|
+ }else{
|
|
|
249
|
+ $this->error("修改失败");
|
|
|
250
|
+ }
|
|
|
251
|
+ }
|
|
|
252
|
+
|
|
|
253
|
+ /**
|
239
|
* 8、手动核销订单中的某个卡卷
|
254
|
* 8、手动核销订单中的某个卡卷
|
240
|
*/
|
255
|
*/
|
241
|
public function ordercheckconsumption(){
|
256
|
public function ordercheckconsumption(){
|
|
@@ -405,5 +420,18 @@ class Business extends Base |
|
@@ -405,5 +420,18 @@ class Business extends Base |
405
|
$this->success("查询成功",$rows);
|
420
|
$this->success("查询成功",$rows);
|
406
|
}
|
421
|
}
|
407
|
|
422
|
|
|
|
423
|
+ /**
|
|
|
424
|
+ * 14、获取代理人二维码
|
|
|
425
|
+ */
|
|
|
426
|
+ public function getagentimg(){
|
|
|
427
|
+ $res=Db::name('verification_store')->where(['id'=>$this->store_id])->find();
|
|
|
428
|
+ if($res){
|
|
|
429
|
+ $img=$this->imgUrl.$res['agent_image'];
|
|
|
430
|
+ }else{
|
|
|
431
|
+ return $this->error("请求失败");
|
|
|
432
|
+ }
|
|
|
433
|
+ return $this->success("请求成功",$img);
|
|
|
434
|
+ }
|
|
|
435
|
+
|
408
|
|
436
|
|
409
|
} |
437
|
} |