|
|
@ -13,11 +13,8 @@ declare (strict_types=1); |
|
|
|
namespace app\api\controller; |
|
|
|
namespace app\api\controller; |
|
|
|
|
|
|
|
|
|
|
|
use app\api\model\Agreement as AgreementModel; |
|
|
|
use app\api\model\Agreement as AgreementModel; |
|
|
|
use app\api\model\User as UserModel; |
|
|
|
|
|
|
|
use app\api\model\Invite\InviteLog; |
|
|
|
use app\api\model\Invite\InviteLog; |
|
|
|
use app\common\service\qrcode\BaseQRcode; |
|
|
|
use app\api\model\User as UserModel; |
|
|
|
use app\store\model\MaintenanceCategory as MaintenanceCategoryModel; |
|
|
|
|
|
|
|
use app\store\model\User as StoreUserModel; |
|
|
|
|
|
|
|
use app\api\model\user\BalanceLog; |
|
|
|
use app\api\model\user\BalanceLog; |
|
|
|
use app\api\model\user\GoodSource as GoodsSourceModel; |
|
|
|
use app\api\model\user\GoodSource as GoodsSourceModel; |
|
|
|
use app\api\model\user\InvoiceOrder; |
|
|
|
use app\api\model\user\InvoiceOrder; |
|
|
@ -26,15 +23,16 @@ use app\api\model\user\UserInvoice; |
|
|
|
use app\api\model\UserCoupon as UserCouponModel; |
|
|
|
use app\api\model\UserCoupon as UserCouponModel; |
|
|
|
use app\api\service\Feedback; |
|
|
|
use app\api\service\Feedback; |
|
|
|
use app\api\service\User as UserService; |
|
|
|
use app\api\service\User as UserService; |
|
|
|
|
|
|
|
use app\common\model\dealer\Order as DealerOrderModel; |
|
|
|
|
|
|
|
use app\common\model\Order as OrderModel; |
|
|
|
use app\common\service\qrcode\InviteUser; |
|
|
|
use app\common\service\qrcode\InviteUser; |
|
|
|
|
|
|
|
use app\store\model\MaintenanceCategory as MaintenanceCategoryModel; |
|
|
|
|
|
|
|
use app\store\model\User as StoreUserModel; |
|
|
|
use cores\exception\BaseException; |
|
|
|
use cores\exception\BaseException; |
|
|
|
use think\db\exception\DataNotFoundException; |
|
|
|
use think\db\exception\DataNotFoundException; |
|
|
|
use think\db\exception\DbException; |
|
|
|
use think\db\exception\DbException; |
|
|
|
use think\db\exception\ModelNotFoundException; |
|
|
|
use think\db\exception\ModelNotFoundException; |
|
|
|
use think\response\Json; |
|
|
|
use think\response\Json; |
|
|
|
use think\facade\Db; |
|
|
|
|
|
|
|
use app\common\model\dealer\Order as DealerOrderModel; |
|
|
|
|
|
|
|
use app\common\model\Order as OrderModel; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 用户管理 |
|
|
|
* 用户管理 |
|
|
@ -318,9 +316,10 @@ class User extends Controller |
|
|
|
public function InviteUserPoster(): Json |
|
|
|
public function InviteUserPoster(): Json |
|
|
|
{ |
|
|
|
{ |
|
|
|
$userInfo = UserService::getCurrentLoginUser(true); |
|
|
|
$userInfo = UserService::getCurrentLoginUser(true); |
|
|
|
|
|
|
|
$type = intval($this->request->post('type'), 1); |
|
|
|
// 生成二维码 |
|
|
|
// 生成二维码 |
|
|
|
$Qrcode = new InviteUser($userInfo, 'MP-WEIXIN'); |
|
|
|
$Qrcode = new InviteUser($userInfo, 'MP-WEIXIN'); |
|
|
|
return $this->renderSuccess(['imageUrl' => $Qrcode->getImage()]); |
|
|
|
return $this->renderSuccess(['imageUrl' => $Qrcode->getImage($type)]); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|