...
|
...
|
@@ -24,7 +24,7 @@ class Business extends Base |
|
|
$postParam = $this->request->param();
|
|
|
$this->postParam = $postParam;
|
|
|
parent::_initialize();
|
|
|
// $this->auth->id=3 ;//测试用
|
|
|
$this->auth->id=3 ;//测试用
|
|
|
$postParam = $this->request->param();
|
|
|
$this->postParam = $postParam;
|
|
|
if (empty($postParam['store_id'])) {
|
...
|
...
|
@@ -40,7 +40,7 @@ class Business extends Base |
|
|
$storewhere['user_id']=$this->auth->id;
|
|
|
$staff = Db::name("verification_staff")->where($storewhere)->find();
|
|
|
if (empty($staff)) {
|
|
|
$this->error("暂无权限!");
|
|
|
$this->error("暂无权限!".$this->auth->id);
|
|
|
}
|
|
|
$this->staff = $staff;
|
|
|
$this->staff_id = $staff['id'];
|
...
|
...
|
@@ -226,7 +226,7 @@ class Business extends Base |
|
|
|
|
|
foreach ($order['receive'] as $key => $value) {
|
|
|
if($order['receive'][$key]['image']){
|
|
|
$order['receive'][$key]['image']=$this->url_h5.$order['receive'][$key]['image'];
|
|
|
$order['receive'][$key]['image']=$this->imgUrl.$order['receive'][$key]['image'];
|
|
|
}
|
|
|
}
|
|
|
$this->success("查询成功",$order);
|
...
|
...
|
@@ -236,6 +236,21 @@ class Business extends Base |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 7.1修改订单电话 名称
|
|
|
*/
|
|
|
public function updateorder(){
|
|
|
$id =$this->postParam['id'];
|
|
|
$name =$this->postParam['name'];
|
|
|
$phone =$this->postParam['phone'];
|
|
|
$res=Db::name('verification_order')->where(['id'=>$id])->update(['name'=>$name,'phone'=>$phone]);
|
|
|
if($res){
|
|
|
$this->success("修改成功");
|
|
|
}else{
|
|
|
$this->error("修改失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 8、手动核销订单中的某个卡卷
|
|
|
*/
|
|
|
public function ordercheckconsumption(){
|
...
|
...
|
@@ -405,5 +420,18 @@ class Business extends Base |
|
|
$this->success("查询成功",$rows);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 14、获取代理人二维码
|
|
|
*/
|
|
|
public function getagentimg(){
|
|
|
$res=Db::name('verification_store')->where(['id'=>$this->store_id])->find();
|
|
|
if($res){
|
|
|
$img=$this->imgUrl.$res['agent_image'];
|
|
|
}else{
|
|
|
return $this->error("请求失败");
|
|
|
}
|
|
|
return $this->success("请求成功",$img);
|
|
|
}
|
|
|
|
|
|
|
|
|
} |
...
|
...
|
|