fixed statslog override
This commit is contained in:
parent
05a1b5e289
commit
fde10ee7bf
@ -78,7 +78,7 @@ class APIController extends MSController
|
|||||||
{
|
{
|
||||||
$connection = Yii::app()->db;
|
$connection = Yii::app()->db;
|
||||||
|
|
||||||
$command=$connection->createCommand("REPLACE INTO {{an_statslog}} (ClientID, Version, ProviderStr, ProviderID, NoteCount) VALUES (:cid, :v, :pstr, :pid, :nc)");
|
$command=$connection->createCommand("INSERT INTO {{an_statslog}} (ClientID, Version, ProviderStr, ProviderID, NoteCount) VALUES (:cid, :v, :pstr, :pid, :nc) ON DUPLICATE KEY UPDATE Version=:v,ProviderStr=:pstr,ProviderID=:pid,NoteCount=:nc");
|
||||||
$command->bindValues([
|
$command->bindValues([
|
||||||
':cid' => $_GET['ClientID'],
|
':cid' => $_GET['ClientID'],
|
||||||
':v' => $_GET['Version'],
|
':v' => $_GET['Version'],
|
||||||
|
Loading…
Reference in New Issue
Block a user