1
This commit is contained in:
parent
35c9fd09fe
commit
8981641974
@ -232,7 +232,6 @@ class ShareController{
|
|||||||
if (count($rows) == 0) {
|
if (count($rows) == 0) {
|
||||||
$share_meta_table = require('../res/share@share.php');
|
$share_meta_table = require('../res/share@share.php');
|
||||||
for ($i = 1; $i <= count($share_meta_table); $i++) {
|
for ($i = 1; $i <= count($share_meta_table); $i++) {
|
||||||
error_log($i);
|
|
||||||
$ret = $conn->execScript('INSERT INTO share_achievement(accountid, ach_id, status, create_time, modify_time) ' .
|
$ret = $conn->execScript('INSERT INTO share_achievement(accountid, ach_id, status, create_time, modify_time) ' .
|
||||||
' VALUES(:account_id, :ach_id, :status, :create_time, :modify_time) ' .
|
' VALUES(:account_id, :ach_id, :status, :create_time, :modify_time) ' .
|
||||||
' ON DUPLICATE KEY UPDATE accountid=:account_id, ach_id=:ach_id, status=:status, modify_time=:modify_time;',
|
' ON DUPLICATE KEY UPDATE accountid=:account_id, ach_id=:ach_id, status=:status, modify_time=:modify_time;',
|
||||||
|
@ -243,7 +243,7 @@ class ShopController{
|
|||||||
' WHERE accountid=:accountid;',
|
' WHERE accountid=:accountid;',
|
||||||
array(
|
array(
|
||||||
':accountid' => $account_id,
|
':accountid' => $account_id,
|
||||||
':coin_num' => $row['shop_flush_times'] + 1,
|
':shop_flush_times' => $row['shop_flush_times'] + 1,
|
||||||
':modify_time' => time()
|
':modify_time' => time()
|
||||||
));
|
));
|
||||||
if (!$ret) {
|
if (!$ret) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user