|
@@ -291,6 +291,18 @@ class util
|
|
|
return intval($value);
|
|
|
}
|
|
|
|
|
|
+ //统计用户提交数据
|
|
|
+ public static function incr_user_commit($card_type, $spec)
|
|
|
+ {
|
|
|
+ $ins = Cache::getInstance('cacheredis');
|
|
|
+
|
|
|
+ $name = 'channel_monitor_user';
|
|
|
+ $sec = time();
|
|
|
+ $key_sec = "succ-{$card_type}-{$spec}-{$sec}";
|
|
|
+
|
|
|
+ $ins->hIncrBy($name, $key_sec, 1);
|
|
|
+ }
|
|
|
+
|
|
|
public static function incr_commit($chname, $card_type, $spec, $quality, $fsuccess = true)
|
|
|
{
|
|
|
$ins = Cache::getInstance('cacheredis');
|
|
@@ -372,21 +384,5 @@ class util
|
|
|
refill\rlock::decr_mch_storage($mchid,$card_type,$spec,1);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- //todo delete this function
|
|
|
- public static function set_amount_lock($mchid, $spec)
|
|
|
- {
|
|
|
- $ins = Cache::getInstance('cacheredis');
|
|
|
- $name = 'mechant_amount_lock';
|
|
|
- return $ins->hIncrBy($name, "{$mchid}", intval($spec));
|
|
|
- }
|
|
|
-
|
|
|
- //todo delete this function
|
|
|
- public static function get_amount_lock($mchid)
|
|
|
- {
|
|
|
- $ins = Cache::getInstance('cacheredis');
|
|
|
- $name = 'mechant_amount_lock';
|
|
|
- return $ins->hget($name, '', "{$mchid}");
|
|
|
- }
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
}
|