|
@@ -7,6 +7,16 @@ use Collection\Lib\Core;
|
|
|
|
|
|
class Pay extends Core
|
|
class Pay extends Core
|
|
{
|
|
{
|
|
|
|
+ private function getParent()
|
|
|
|
+ {
|
|
|
|
+ if (!$this->share_uid) {
|
|
|
|
+ $info = Dever::load('user/lib/collection')->check($this->uid, $this->id);
|
|
|
|
+ if ($info && $info['source_uid']) {
|
|
|
|
+ $this->share_uid = $info['source_uid'];
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
# 购买产品 下单
|
|
# 购买产品 下单
|
|
public function product()
|
|
public function product()
|
|
{
|
|
{
|
|
@@ -36,6 +46,8 @@ class Pay extends Core
|
|
Dever::alert('请传入购买数量');
|
|
Dever::alert('请传入购买数量');
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ $this->getParent();
|
|
|
|
+
|
|
$pay = Dever::load('goods/lib/pay')->action($this->share_uid, $this->user, $goods_id, $sku, $num, $mode, $store_id, $this->system_source, 'collection/info', $this->id, $refer);
|
|
$pay = Dever::load('goods/lib/pay')->action($this->share_uid, $this->user, $goods_id, $sku, $num, $mode, $store_id, $this->system_source, 'collection/info', $this->id, $refer);
|
|
|
|
|
|
return $pay;
|
|
return $pay;
|
|
@@ -59,6 +71,8 @@ class Pay extends Core
|
|
$object_id = Dever::input('object_id');
|
|
$object_id = Dever::input('object_id');
|
|
$refer = Dever::input('refer');
|
|
$refer = Dever::input('refer');
|
|
|
|
|
|
|
|
+ $this->getParent();
|
|
|
|
+
|
|
$pay = Dever::load('user/lib/ticket')->action($this->share_uid, $uid, $buy_id, $object_id, $this->system_source, $refer);
|
|
$pay = Dever::load('user/lib/ticket')->action($this->share_uid, $uid, $buy_id, $object_id, $this->system_source, $refer);
|
|
|
|
|
|
return $pay;
|
|
return $pay;
|
|
@@ -93,6 +107,8 @@ class Pay extends Core
|
|
Dever::alert('请选择正确的座位');
|
|
Dever::alert('请选择正确的座位');
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ $this->getParent();
|
|
|
|
+
|
|
$refer = Dever::input('refer');
|
|
$refer = Dever::input('refer');
|
|
$location = Dever::input('location');
|
|
$location = Dever::input('location');
|
|
$code = $this->getCode($this->id, $this->parent_page_id, $this->page_id, $index, $this->times, $this->day);
|
|
$code = $this->getCode($this->id, $this->parent_page_id, $this->page_id, $index, $this->times, $this->day);
|