|
@@ -55,7 +55,7 @@ class Core
|
|
|
$insert['cron_type'] = 1;
|
|
|
$log_id = Dever::db('score/action_log')->insert($insert);
|
|
|
|
|
|
-
|
|
|
+ Dever::load('score/lib/core.oper_commit?log_id='.$log_id);
|
|
|
return;
|
|
|
$sync = Dever::config('base', 'project')->score['sync'];
|
|
|
if ($sync) {
|
|
@@ -144,14 +144,9 @@ class Core
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
- public function oper_api()
|
|
|
+ public function oper_commit_api()
|
|
|
{
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- public function oper_commit()
|
|
|
- {
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|
|
@@ -159,7 +154,7 @@ class Core
|
|
|
*
|
|
|
* @return mixed
|
|
|
*/
|
|
|
- public function oper()
|
|
|
+ public function oper_commit()
|
|
|
{
|
|
|
$log_id = Dever::input('log_id');
|
|
|
|
|
@@ -227,8 +222,8 @@ class Core
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- $user_log['type'] = $info['type'];
|
|
|
- $user_log['type_id'] = $info['type_id'];
|
|
|
+ $user_log['type'] = $log['type'];
|
|
|
+ $user_log['type_id'] = $log['type_id'];
|
|
|
|
|
|
|
|
|
if ($info['rebate_type'] > 1) {
|
|
@@ -291,7 +286,7 @@ class Core
|
|
|
$insert['cdate'] = time();
|
|
|
$insert['id'] = Dever::db($this->user_log)->insert($insert);
|
|
|
|
|
|
- if ($user_log_id) {
|
|
|
+ if ($insert['id']) {
|
|
|
Dever::db($this->user)->update($update);
|
|
|
|
|
|
|
|
@@ -418,7 +413,7 @@ class Core
|
|
|
|
|
|
private function operAction($log)
|
|
|
{
|
|
|
- if ($log && $log['cron_type'] == 1) {
|
|
|
+ if ($log && $log['cron_type']) {
|
|
|
Dever::db('score/action_log')->update(array('where_id' => $log['id'], 'cron_type' => 2));
|
|
|
$where = array();
|
|
|
$where['state'] = 1;
|