dever 4 yıl önce
ebeveyn
işleme
491102909e
2 değiştirilmiş dosya ile 5 ekleme ve 1 silme
  1. 4 0
      app/collection/lib/Core.php
  2. 1 1
      app/user/src/Api.php

+ 4 - 0
app/collection/lib/Core.php

@@ -11,6 +11,7 @@ class Core
     protected $id;
     protected $id_code;
     protected $share_uid = 0;
+    protected $ticket_id = 0;
     protected $user;
 	protected $year;
     protected $times;
@@ -131,6 +132,9 @@ class Core
             
             if (isset($code[7]) && $code[7] && $code[7] != $this->uid) {
                 $this->share_uid = $code[7];
+                if (isset($code[8]) && $code[8]) {
+                    $this->ticket_id = $code[8];
+                }
             }
             
         } else {

+ 1 - 1
app/user/src/Api.php

@@ -52,7 +52,7 @@ class Api extends Core
         $info = $this->checkInfo();
         $is_buy = $this->checkView();
         if (!$is_buy && $this->share_uid && $this->share_uid > 0) {
-            
+            Dever::load('user/lib/collection')->up($ticket_id, $this->uid, $this->share_uid, $info['id'], 1);
         }
     }