|
|
@@ -3,6 +3,8 @@ namespace app\workerapi\controller;
|
|
|
|
|
|
use app\workerapi\lists\GoodsCategoryLists;
|
|
|
use app\workerapi\logic\GoodsCategoryLogic;
|
|
|
+use app\workerapi\validate\GoodsCategoryValidate;
|
|
|
+use app\workerapi\validate\IssueWorkValidate;
|
|
|
|
|
|
/**
|
|
|
* 用户控制器
|
|
|
@@ -18,7 +20,11 @@ class GoodsCategoryController extends BaseApiController
|
|
|
|
|
|
public function getQrCode()
|
|
|
{
|
|
|
- $result = GoodsCategoryLogic::getQRCode();
|
|
|
+ $params = (new GoodsCategoryValidate())->post()->goCheck('qrcode', [
|
|
|
+ 'user_id' => $this->userId,
|
|
|
+ 'user_info' => $this->userInfo
|
|
|
+ ]);
|
|
|
+ $result = GoodsCategoryLogic::getQRCode($params);
|
|
|
if (false === $result) {
|
|
|
return $this->fail(GoodsCategoryLogic::getError());
|
|
|
}
|