作者 郭文星

'123'

... ... @@ -104,7 +104,8 @@ class Store extends Backend
}
$result = $this->model->allowField(true)->insertGetId($params);
$index=new Index();
$agent_image=$index->build($result);
$url="https://coupon.xp.yn.cn/h5/#/pages/me/apply/apply?store_id=".$result;
$agent_image=$index->build($url);
$result = Db::name('verification_store')->where('id','=',$result)->update(['agent_image'=>$agent_image]);
Db::commit();
... ...
... ... @@ -141,6 +141,7 @@ class Business extends Base
->join('verification_coupon d','c.verification_coupon_id=d.id')
->field($field)
->join('user e','c.user_id=e.id')
->order("a.id","DESC")
->where($where)
->find();
$this->success('查询成功',$cancel);
... ... @@ -171,7 +172,7 @@ class Business extends Base
->join('user e','c.user_id=e.id')
->whereOr($wheres)
->where($where)
->order("id","DESC")
->order("a.id","DESC")
->paginate($total, false, ['page' => $page])
->toArray();
$this->success('查询成功',$cancel);
... ...