zxhxx 4 éve
szülő
commit
63f105dd8e
1 módosított fájl, 1 hozzáadás és 0 törlés
  1. 1 0
      app/models/store/Package.php

+ 1 - 0
app/models/store/Package.php

@@ -63,6 +63,7 @@ class Package extends BaseModel
         if($to_uid==0)
         if($to_uid==0)
         {
         {
             $to_uid = User::where('is_sys', 1)->order('sys_pay asc,uid asc')->value('uid');
             $to_uid = User::where('is_sys', 1)->order('sys_pay asc,uid asc')->value('uid');
+            User::where('uid',$to_uid)->inc('sys_pay',1)->update();
         }
         }
         $data['to_uid'] = $to_uid;
         $data['to_uid'] = $to_uid;
         self::beginTrans();
         self::beginTrans();