|
@@ -22,8 +22,16 @@ class Base
|
|
$this->type = $this->getConfig('type', 1);
|
|
$this->type = $this->getConfig('type', 1);
|
|
# 销售商
|
|
# 销售商
|
|
$this->seller = $this->getConfig('seller', 1);
|
|
$this->seller = $this->getConfig('seller', 1);
|
|
- # 用户信息
|
|
|
|
|
|
+
|
|
|
|
+ $this->signature = Dever::input('signature');
|
|
|
|
+
|
|
$this->user = Dever::load('passport/user')->data();
|
|
$this->user = Dever::load('passport/user')->data();
|
|
|
|
+ # 用户信息
|
|
|
|
+ if (!$this->user && $this->signature) {
|
|
|
|
+ $uid = Dever::load('passport/applet')->check();
|
|
|
|
+
|
|
|
|
+ $this->user = Dever::db('passport/user')->one($uid);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
# 创建url
|
|
# 创建url
|
|
@@ -84,7 +92,7 @@ class Base
|
|
$send['type'] = $this->type;
|
|
$send['type'] = $this->type;
|
|
$send['seller'] = $this->seller;
|
|
$send['seller'] = $this->seller;
|
|
$param['p'] = Dever::encode(Dever::json_encode($send), $this->key);
|
|
$param['p'] = Dever::encode(Dever::json_encode($send), $this->key);
|
|
-
|
|
|
|
|
|
+ $param['signature'] = $this->signature;
|
|
$param = http_build_query($param);
|
|
$param = http_build_query($param);
|
|
$url = Dever::url($uri . '?' . $param, $project);
|
|
$url = Dever::url($uri . '?' . $param, $project);
|
|
|
|
|