Commit c4f08aa2 authored by hujun's avatar hujun

分享二维码

parent 1d841174
...@@ -442,6 +442,8 @@ class Member extends Basic ...@@ -442,6 +442,8 @@ class Member extends Basic
* 生成邀请二维码 * 生成邀请二维码
* *
* @return \think\Response * @return \think\Response
* @throws \Endroid\QrCode\Exception\InvalidPathException
* @throws \Endroid\QrCode\Exception\InvalidWriterException
* @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException * @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException * @throws \think\exception\DbException
...@@ -458,7 +460,7 @@ class Member extends Basic ...@@ -458,7 +460,7 @@ class Member extends Basic
if ($result) { if ($result) {
$code = new \app\api\untils\GenerateCodeUntils(); $code = new \app\api\untils\GenerateCodeUntils();
$url = $this->request->domain().'/app.php/app/share_register?referrer_source=10&id='.$result->id; $url = $this->request->domain().'/app_broker/index?referrer_source=10&referrer_id='.$result->id;
$path = $code->getCode($url, $result->id); $path = $code->getCode($url, $result->id);
$data['data'] = ['path' => $this->request->domain().'/'.$path]; $data['data'] = ['path' => $this->request->domain().'/'.$path];
$data['status'] = 200; $data['status'] = 200;
......
...@@ -557,7 +557,7 @@ class Broker extends Basic ...@@ -557,7 +557,7 @@ class Broker extends Basic
} }
$code = new GenerateCodeUntils(); $code = new GenerateCodeUntils();
$url = $this->request->domain() . '/app/share_register?referrer_source=20&id=' . $this->agentId; $url = $this->request->domain() . '/app_broker/index?referrer_source=20&referrer_id=' . $this->agentId;
$path = $code->getCode($url, $this->agentId, 2); $path = $code->getCode($url, $this->agentId, 2);
$data['data'] = [ 'path' => $this->request->domain() . '/' . $path ]; $data['data'] = [ 'path' => $this->request->domain() . '/' . $path ];
$data['status'] = 200; $data['status'] = 200;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment