|
|
|
@ -123,6 +123,7 @@ class AgentProductController extends AdminController |
|
|
|
return redirect(Storage::disk('public')->url($filename)); |
|
|
|
} |
|
|
|
|
|
|
|
try { |
|
|
|
$mp = (new OpenPlatform)->miniProgram(Admin::user()->appid); |
|
|
|
$response = $mp->app_code->getQrCode('/pages/goodsDetail/index?goods_id=' . $agent_product_id); |
|
|
|
if ($response instanceof StreamResponse) { |
|
|
|
@ -131,6 +132,9 @@ class AgentProductController extends AdminController |
|
|
|
header("Content-Type: " . $response->getHeaderLine('Content-Type')); |
|
|
|
return $response; //输出图片
|
|
|
|
} |
|
|
|
} catch (\Exception $exception) { |
|
|
|
return null; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
|