|
|
|
@ -15,6 +15,7 @@ namespace app\api\controller; |
|
|
|
|
use app\api\model\Agreement as AgreementModel; |
|
|
|
|
use app\api\model\User as UserModel; |
|
|
|
|
use app\api\model\Invite\InviteLog; |
|
|
|
|
use app\common\service\qrcode\BaseQRcode; |
|
|
|
|
use app\store\model\User as StoreUserModel; |
|
|
|
|
use app\api\model\user\BalanceLog; |
|
|
|
|
use app\api\model\user\GoodSource as GoodsSourceModel; |
|
|
|
@ -398,6 +399,8 @@ class User extends Controller |
|
|
|
|
|
|
|
|
|
public function maintenance() |
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
$qrObj = new BaseQRcode(); |
|
|
|
|
$storeId = request()->header()['storeid']; |
|
|
|
|
$list = Db::table('yoshop_maintenance_category') |
|
|
|
|
->where(['store_id' => $storeId, 'status' => 1,]) |
|
|
|
@ -409,8 +412,10 @@ class User extends Controller |
|
|
|
|
->select() |
|
|
|
|
->toArray(); |
|
|
|
|
} |
|
|
|
|
foreach ($list['tags'] ?? [] as &$item) { |
|
|
|
|
$item['url'] = $qrObj->getOtherQrcode($storeId, $item['url']); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return $this->renderSuccess($list); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|