添加生成商户线下收款码

This commit is contained in:
luofei 2024-02-29 17:26:31 +08:00
parent eb20948bcb
commit bf09ec7935
2 changed files with 12 additions and 1 deletions

View File

@ -4,6 +4,7 @@ namespace app\controller\api\store\order;
use app\common\model\store\product\Product;
use app\common\repositories\store\product\ProductRepository;
use app\controller\api\Common;
use crmeb\basic\BaseController;
/**
@ -32,4 +33,13 @@ class ScanPay extends BaseController
return app('json')->success($data);
}
public function qrcode()
{
$merId = $this->request->get('mer_id');
$common = app()->make(Common::class);
$siteUrl = systemConfig('site_url');
$data = $common->Qrcode(['code' => $siteUrl . 'pages/payment/get_payment?mer_id=' . $merId, 'id' => $this->request->uid]);
return app('json')->success(['url' => $data]);
}
}

View File

@ -48,6 +48,7 @@ Route::group('api/', function () {
Route::group(function () {
Route::get('scanPay/product', 'api.store.order.ScanPay/product');
Route::get('scanPay/qrcode', 'api.store.order.ScanPay/qrcode');
Route::any('qrcode', 'api.user.User/qrcode');
Route::get('merchantRecord', 'api.user.User/merchantRecord');