把 weixin-robot-credit.php 159 行改成:
$last_checkin_time = $wpdb->get_var($wpdb->prepare("SELECT `time` FROM {$wpdb->weixin_credits} WHERE `type`=%s AND weixin_openid=%s AND time > %s AND time <= %s", $type, $weixin_openid, $current_date.' 00:00:00', $current_date.' 23:59:59' ));