更新修复生成二维码异常
This commit is contained in:
parent
f0931c5bf2
commit
af562ee2b7
@ -23,10 +23,11 @@ use crmeb\basic\BaseController;
|
|||||||
use app\common\repositories\store\order\StoreCartRepository;
|
use app\common\repositories\store\order\StoreCartRepository;
|
||||||
use app\common\repositories\store\order\StoreGroupOrderRepository;
|
use app\common\repositories\store\order\StoreGroupOrderRepository;
|
||||||
use app\common\repositories\store\order\StoreOrderRepository;
|
use app\common\repositories\store\order\StoreOrderRepository;
|
||||||
|
use think\exception\ValidateException;
|
||||||
use crmeb\services\ExpressService;
|
use crmeb\services\ExpressService;
|
||||||
use crmeb\services\LockService;
|
use crmeb\services\LockService;
|
||||||
|
use think\facade\Db;
|
||||||
use think\App;
|
use think\App;
|
||||||
use think\exception\ValidateException;
|
|
||||||
use think\facade\Log;
|
use think\facade\Log;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -284,7 +285,10 @@ class StoreOrder extends BaseController
|
|||||||
|
|
||||||
public function logisticsCode($id)
|
public function logisticsCode($id)
|
||||||
{
|
{
|
||||||
$order = $this->repository->getWhere(['order_id' => $id, 'uid' => $this->request->uid(), 'is_del' => 0]);
|
$storeInfo = Db::name('store_service')->where('uid', $this->request->uid())->find();
|
||||||
|
if (!$storeInfo)
|
||||||
|
return app('json')->fail('商户信息有误');
|
||||||
|
$order = $this->repository->getWhere(['order_id' => $id, 'mer_id' => $storeInfo['mer_id'], 'is_del' => 0]);
|
||||||
if (!$order)
|
if (!$order)
|
||||||
return app('json')->fail('订单状态有误');
|
return app('json')->fail('订单状态有误');
|
||||||
return app('json')->success(['qrcode' => $this->repository->logisticsQrcode($id, $order->order_sn)]);
|
return app('json')->success(['qrcode' => $this->repository->logisticsQrcode($id, $order->order_sn)]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user