|
|
@@ -134,6 +134,7 @@ class Platform extends Api
|
|
|
}else{
|
|
|
$res1 = model('VideoUser')->where('uid',$v['uid'])->where('vid',$v['vid'])->update(['share'=>$share,'contribution'=>$contribution]);
|
|
|
}
|
|
|
+ @file_put_contents("quanju.txt", $res1 . "-修改状态\r\n", 8);
|
|
|
// 保存扣除记录
|
|
|
$up = [
|
|
|
'vid' => $v['vid'],
|
|
|
@@ -146,6 +147,7 @@ class Platform extends Api
|
|
|
'pm' => 1,
|
|
|
];
|
|
|
$id = Db::name('VideoContributionRecord')->insertGetId($up);
|
|
|
+ @file_put_contents("quanju.txt", $id . "-记录id\r\n", 8);
|
|
|
$user = model('VideoList')->where('id',$v['vid'])->find();
|
|
|
$user_contribution = $user['share']+$v['num'];
|
|
|
$res2 = model('VideoList')->where('id',$v['vid'])->update(['share'=>$user_contribution]);
|