zxhxx 3 vuotta sitten
vanhempi
commit
63f105dd8e
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  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)
         {
             $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;
         self::beginTrans();