HaniBlindBox/server/php/app/common/service/PayService.php
2026-01-01 20:46:07 +08:00

44 lines
927 B
PHP

<?php
namespace app\common\service;
use app\common\server\platform\MiniProgramPlatform;
use app\common\model\User;
use app\common\model\Reward;
use app\common\model\CouponReceive;
use app\common\model\Coupon;
use app\common\model\Order;
use think\facade\Request;
use think\App;
/**
* 通用服务类
*/
class PayService
{
/**
* Request实例
* @var \think\Request
*/
protected $request;
/**
* 应用实例
* @var \think\App
*/
protected $app;
protected $client;
//构造函数
public function __construct(App $app)
{
$this->app = $app;
$this->request = $this->app->request;
//客户端
$this->client = $this->request->header('client', '');
if ($this->client == "") {
$this->client = $this->request->header('platform', 'MP-WEIXIN');
}
//client
$m = new MiniProgramPlatform();
}
}