本文整理汇总了PHP中is_digits函数的典型用法代码示例。如果您正苦于以下问题:PHP is_digits函数的具体用法?PHP is_digits怎么用?PHP is_digits使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了is_digits函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: index_action
public function index_action()
{
$_GET['per_page'] = $_GET['per_page'] ? intval($_GET['per_page']) : get_setting('contents_per_page');
$result = $this->model('search')->search(cjk_substr($_GET['q'], 0, 64), $_GET['type'], $_GET['page'], $_GET['per_page'], $_GET['topic_ids'], $_GET['is_recommend']);
if (!$result) {
$result = array();
}
if ($_GET['is_question_id'] and is_digits($_GET['q'])) {
$question_info = $this->model('question')->get_question_info_by_id($_GET['q']);
if ($question_info) {
$result[] = $this->model('search')->prase_result_info($question_info);
}
}
if ($result) {
$key_arr = array('type', 'search_id', 'name', 'detail');
foreach ($result as $key => $val) {
foreach ($val as $k => $v) {
if (!in_array($k, $key_arr)) {
unset($result[$key][$k]);
}
}
}
}
H::ajax_json_output(AWS_APP::RSM(array('total_rows' => count($result), 'rows' => $result), 1, null));
}
开发者ID:nerverwind,项目名称:wecenter_ios_sdk,代码行数:25,代码来源:search.php
示例2: refresh_access_token
function refresh_access_token($id, $sina_token)
{
if (!is_digits($id) or empty($sina_token['access_token'])) {
return false;
}
return $this->update('users_sina', array('access_token' => $sina_token['access_token'], 'expires_time' => time() + $sina_token['expires_in']), 'id = ' . $id);
}
开发者ID:chenruixuan,项目名称:wecenter,代码行数:7,代码来源:weibo.php
示例3: set_slide_sort
public function set_slide_sort($id, $order)
{
if (!is_digits($id) or !is_digits($order) or $order < 0 or $order > 99) {
return false;
}
return $this->update('slide', array('order' => intval($order)), 'id = ' . intval($id));
}
开发者ID:egogg,项目名称:wecenter-dev,代码行数:7,代码来源:slide.php
示例4: index_action
public function index_action()
{
if (is_digits($_GET['id'])) {
$feature_info = $this->model('feature')->get_feature_by_id($_GET['id']);
} else {
$feature_info = $this->model('feature')->get_feature_by_url_token($_GET['id']);
}
if (!$feature_info) {
header('HTTP/1.1 404 Not Found');
H::redirect_msg(AWS_APP::lang()->_t('专题不存在'), '/');
}
if (!$feature_info['enabled']) {
H::redirect_msg(AWS_APP::lang()->_t('专题未启用'), '/');
}
if ($feature_info['url_token'] != $_GET['id'] and !$_GET['sort_type'] and !$_GET['is_recommend']) {
HTTP::redirect('/feature/' . $feature_info['url_token']);
}
if (!($topic_list = $this->model('topic')->get_topics_by_ids($this->model('feature')->get_topics_by_feature_id($feature_info['id'])))) {
H::redirect_msg(AWS_APP::lang()->_t('专题下必须包含一个以上话题'), '/');
}
if ($feature_info['seo_title']) {
TPL::assign('page_title', $feature_info['seo_title']);
} else {
$this->crumb($feature_info['title'], '/feature/' . $feature_info['url_token']);
}
TPL::assign('sidebar_hot_topics', $topic_list);
TPL::assign('feature_info', $feature_info);
TPL::import_js('js/app/feature.js');
TPL::output('feature/detail');
}
开发者ID:Gradven,项目名称:what3.1.7,代码行数:30,代码来源:main.php
示例5: index_action
public function index_action()
{
if (isset($_GET['notification_id'])) {
$this->model('notify')->read_notification($_GET['notification_id'], $this->user_id);
}
if (is_mobile()) {
HTTP::redirect('/m/people/' . $_GET['id']);
}
if (is_digits($_GET['id'])) {
if (!($user = $this->model('account')->get_user_info_by_uid($_GET['id'], TRUE))) {
$user = $this->model('account')->get_user_info_by_username($_GET['id'], TRUE);
}
} else {
if ($user = $this->model('account')->get_user_info_by_username($_GET['id'], TRUE)) {
} else {
$user = $this->model('account')->get_user_info_by_url_token($_GET['id'], TRUE);
}
}
if (!$user) {
header('HTTP/1.1 404 Not Found');
H::redirect_msg(AWS_APP::lang()->_t('用户不存在'), '/');
}
if ($user['forbidden'] and !$this->user_info['permission']['is_administortar'] and !$this->user_info['permission']['is_moderator']) {
header('HTTP/1.1 404 Not Found');
H::redirect_msg(AWS_APP::lang()->_t('该用户已被封禁'), '/');
}
if (urldecode($user['url_token']) != $_GET['id']) {
HTTP::redirect('/people/' . $user['url_token']);
}
$this->model('people')->update_views($user['uid']);
TPL::assign('user', $user);
$job_info = $this->model('account')->get_jobs_by_id($user['job_id']);
TPL::assign('job_name', $job_info['job_name']);
if ($user['weibo_visit']) {
if ($users_sina = $this->model('openid_weibo_oauth')->get_weibo_user_by_uid($user['uid'])) {
TPL::assign('sina_weibo_url', 'http://www.weibo.com/' . $users_sina['id']);
}
}
TPL::assign('education_experience_list', $this->model('education')->get_education_experience_list($user['uid']));
$jobs_list = $this->model('work')->get_jobs_list();
if ($work_experience_list = $this->model('work')->get_work_experience_list($user['uid'])) {
foreach ($work_experience_list as $key => $val) {
$work_experience_list[$key]['job_name'] = $jobs_list[$val['job_id']];
}
}
TPL::assign('work_experience_list', $work_experience_list);
TPL::assign('user_follow_check', $this->model('follow')->user_follow_check($this->user_id, $user['uid']));
$this->crumb(AWS_APP::lang()->_t('%s 的个人主页', $user['user_name']), 'people/' . $user['url_token']);
TPL::import_css('css/user.css');
TPL::assign('reputation_topics', $this->model('people')->get_user_reputation_topic($user['uid'], $user['reputation'], 12));
TPL::assign('fans_list', $this->model('follow')->get_user_fans($user['uid'], 5));
TPL::assign('friends_list', $this->model('follow')->get_user_friends($user['uid'], 5));
TPL::assign('focus_topics', $this->model('topic')->get_focus_topic_list($user['uid'], 10));
TPL::assign('user_actions_questions', $this->model('actions')->get_user_actions($user['uid'], 5, ACTION_LOG::ADD_QUESTION, $this->user_id));
TPL::assign('user_actions_answers', $this->model('actions')->get_user_actions($user['uid'], 5, ACTION_LOG::ANSWER_QUESTION, $this->user_id));
TPL::assign('user_actions', $this->model('actions')->get_user_actions($user['uid'], 5, implode(',', array(ACTION_LOG::ADD_QUESTION, ACTION_LOG::ANSWER_QUESTION, ACTION_LOG::ADD_REQUESTION_FOCUS, ACTION_LOG::ADD_AGREE, ACTION_LOG::ADD_TOPIC, ACTION_LOG::ADD_TOPIC_FOCUS, ACTION_LOG::ADD_ARTICLE)), $this->user_id));
TPL::output('people/index');
}
开发者ID:tenstone,项目名称:wecenter,代码行数:58,代码来源:main.php
示例6: send
public function send($email, $subject, $message, $link = null, $link_title = null, $server = 'master')
{
if (is_digits($email)) {
if (!($user_info = $this->model('account')->get_user_info_by_uid($email))) {
return false;
}
$user_name = $user_info['user_name'];
$email = $user_info['email'];
}
return AWS_APP::mail()->send($email, $subject, $this->get_mail_template($user_name, $subject, $message, $link, $link_title), get_setting('site_name'), $user_name, $server);
}
开发者ID:wenyinos,项目名称:wecenter,代码行数:11,代码来源:email.php
示例7: get_article_info_by_id
public function get_article_info_by_id($article_id)
{
if (!is_digits($article_id)) {
return false;
}
static $articles;
if (!$articles[$article_id]) {
$articles[$article_id] = $this->fetch_row('article', 'id = ' . $article_id);
}
return $articles[$article_id];
}
开发者ID:Gradven,项目名称:what3.1.7,代码行数:11,代码来源:article.php
示例8: get_joined_digits
function get_joined_digits(&$v, &$ids)
{
$ids = explode(',', $v);
if (count($ids) === 0) {
return false;
}
foreach ($ids as $id) {
if (!is_digits($id)) {
return false;
}
}
return true;
}
开发者ID:steem,项目名称:qwp,代码行数:13,代码来源:common.php
示例9: search_action
public function search_action()
{
$result = $this->model('search')->search(cjk_substr($_GET['q'], 0, 64), $_GET['type'], 1, $_GET['limit'], $_GET['topic_ids'], $_GET['is_recommend']);
if (!$result) {
$result = array();
}
if ($_GET['is_question_id'] and is_digits($_GET['q'])) {
$question_info = $this->model('question')->get_question_info_by_id($_GET['q']);
if ($question_info) {
$result[] = $this->model('search')->prase_result_info($question_info);
}
}
H::ajax_json_output($result);
}
开发者ID:wenyinos,项目名称:wecenter,代码行数:14,代码来源:ajax.php
示例10: list_users
function list_users(&$msg, &$data)
{
get_user_data_modal($user_modal);
$user_id = P('id');
$options = array('data modal' => $user_modal, 'left join' => array(array('qwp_role', 'r', 'r.id=u.role')), 'where' => 'u.id<>1 and role<>1');
if ($user_id) {
$data = array();
if ($user_id != '1' && is_digits($user_id)) {
$options['where'] .= ' and u.id=' . $user_id;
qwp_db_get_data(array('qwp_user', 'u'), $data, null, $options);
}
} else {
$options['default order'] = array('role', array('id', 'desc'));
$options['search condition'] = array('condition' => array('fields' => array('u.name' => 'like', 'avatar' => 'set_avatar_condition', 'gender' => array('s' => array('<>', 'x'))), 'condition' => array('op' => 'or', 'fields' => array('phone' => 'like', 'account' => 'like', 'email' => 'like', 'name' => 'like'))));
$options['search converter'] = 'convert_search_data';
qwp_db_retrieve_data(array('qwp_user', 'u'), $data, $options);
}
}
开发者ID:steem,项目名称:qwp,代码行数:18,代码来源:ops_list.php
示例11: save_action
public static function save_action($uid, $associate_id, $action_type, $action_id, $action_content = null, $action_attch = null, $add_time = null, $anonymous = null, $addon_data = null)
{
if (!$uid or !$associate_id) {
return false;
}
if (is_digits($action_attch)) {
$action_attch_insert = $action_attch;
} else {
$action_attch_insert = '-1';
$action_attch_update = $action_attch;
}
if (!$add_time) {
$add_time = time();
}
$history_id = AWS_APP::model()->insert('user_action_history', array('uid' => intval($uid), 'associate_type' => $action_type, 'associate_action' => $action_id, 'associate_id' => $associate_id, 'associate_attached' => $action_attch_insert, 'add_time' => $add_time, 'anonymous' => intval($anonymous)));
AWS_APP::model()->insert('user_action_history_data', array('history_id' => $history_id, 'associate_content' => htmlspecialchars($action_content), 'associate_attached' => htmlspecialchars($action_attch_update), 'addon_data' => $addon_data ? serialize($addon_data) : ''));
self::associate_fresh_action($history_id, $associate_id, $action_type, $action_id, $uid, $anonymous, $add_time);
return $history_id;
}
开发者ID:Vizards,项目名称:HeavenSpree,代码行数:19,代码来源:cls_action_log_class.inc.php
示例12: update_third_party_login
public function update_third_party_login($id = null, $action, $name, $url, $token, $enabled = null, $account_id = null, $rank = null)
{
if ($action == 'update' and !is_digits($id) or $action == 'add' and !is_digits($account_id)) {
return false;
}
$to_save_rule = array();
if ($name) {
$to_save_rule['name'] = $name;
}
if ($url) {
$to_save_rule['url'] = $url;
}
if ($token) {
$to_save_rule['token'] = $token;
}
if ($enabled !== null) {
if ($enabled == 1) {
$to_save_rule['enabled'] = '1';
} else {
$to_save_rule['enabled'] = '0';
}
}
if (is_digits($account_id)) {
$to_save_rule['account_id'] = $account_id;
}
if (is_digits($rank) and $rank >= 0 and $rank <= 99) {
$to_save_rule['rank'] = $rank;
}
switch ($action) {
case 'add':
return $this->insert('weixin_third_party_login', $to_save_rule);
break;
case 'update':
return $this->update('weixin_third_party_login', $to_save_rule, 'id = ' . $id);
break;
default:
return false;
break;
}
}
开发者ID:cutcuty,项目名称:wecenterthing,代码行数:40,代码来源:thirdlogin.php
示例13: save_question
/**
*
* 增加问题内容
* @param string $question_content //问题内容
* @param string $question_detail //问题说明
*
* @return boolean true|false
*/
public function save_question($question_content, $question_detail, $published_uid, $question_difficulty, $quiz_id, $anonymous = 0, $ip_address = null, $from = null)
{
if (!$ip_address) {
$ip_address = fetch_ip();
}
$now = time();
$to_save_question = array('question_content' => htmlspecialchars($question_content), 'question_detail' => htmlspecialchars($question_detail), 'add_time' => $now, 'update_time' => $now, 'published_uid' => intval($published_uid), 'difficulty' => intval($question_difficulty), 'quiz_id' => intval($quiz_id), 'anonymous' => intval($anonymous), 'ip' => ip2long($ip_address));
if ($from and is_array($from)) {
foreach ($from as $type => $from_id) {
if (!is_digits($from_id)) {
continue;
}
$to_save_question[$type . '_id'] = $from_id;
}
}
$question_id = $this->insert('question', $to_save_question);
if ($question_id) {
$this->shutdown_update('users', array('question_count' => $this->count('question', 'published_uid = ' . intval($published_uid))), 'uid = ' . intval($published_uid));
$this->model('search_fulltext')->push_index('question', $question_content, $question_id);
}
return $question_id;
}
开发者ID:egogg,项目名称:wecenter-dev,代码行数:30,代码来源:question.php
示例14: remove_assoc
function remove_assoc($from, $type, $id)
{
if (!$from or !$type or !is_digits($id)) {
return false;
}
return $this->query('UPDATE ' . $this->get_table($from) . ' SET `' . $type . '_id` = NULL WHERE `' . $type . '_id` = ' . $id);
}
开发者ID:Gradven,项目名称:what3.1.7,代码行数:7,代码来源:functions.app.php
示例15: check_username_char
public function check_username_char($user_name)
{
if (is_digits($user_name)) {
return AWS_APP::lang()->_t('用户名不能为纯数字');
}
if (strstr($user_name, '-')) {
return AWS_APP::lang()->_t('用户名不能包含 -');
}
$length = strlen(convert_encoding($user_name, 'UTF-8', 'GB2312'));
$length_min = intval(get_setting('username_length_min'));
$length_max = intval(get_setting('username_length_max'));
if ($length < $length_min || $length > $length_max) {
$flag = true;
}
switch (get_setting('username_rule')) {
default:
break;
case 1:
if (!preg_match('/^[\\x{4e00}-\\x{9fa5}_a-zA-Z0-9]+$/u', $user_name) or $flag) {
return AWS_APP::lang()->_t('请输入大于 %s 字节的用户名, 允许汉字、字母与数字', $length_min . ' - ' . $length_max);
}
break;
case 2:
if (!preg_match("/^[a-zA-Z0-9_]+\$/i", $user_name) or $flag) {
return AWS_APP::lang()->_t('请输入 %s 个字母、数字或下划线', $length_min . ' - ' . $length_max);
}
break;
case 3:
if (!preg_match("/^[\\x{4e00}-\\x{9fa5}]+\$/u", $user_name) or $flag) {
return AWS_APP::lang()->_t('请输入 %s 个汉字', ceil($length_min / 2) . ' - ' . floor($length_max / 2));
}
break;
}
return false;
}
开发者ID:actcms,项目名称:houziquan,代码行数:35,代码来源:account.php
示例16: index_square_action
public function index_square_action()
{
$this->crumb(AWS_APP::lang()->_t('问题'), '/question/');
// 导航
if (TPL::is_output('block/content_nav_menu.tpl.htm', 'question/square')) {
TPL::assign('content_nav_menu', $this->model('menu')->get_nav_menu_list('question'));
}
//边栏可能感兴趣的人
if (TPL::is_output('block/sidebar_recommend_users_topics.tpl.htm', 'question/square')) {
TPL::assign('sidebar_recommend_users_topics', $this->model('module')->recommend_users_topics($this->user_id));
}
//边栏热门用户
if (TPL::is_output('block/sidebar_hot_users.tpl.htm', 'question/square')) {
TPL::assign('sidebar_hot_users', $this->model('module')->sidebar_hot_users($this->user_id, 5));
}
//边栏热门话题
if (TPL::is_output('block/sidebar_hot_topics.tpl.htm', 'question/square')) {
TPL::assign('sidebar_hot_topics', $this->model('module')->sidebar_hot_topics($_GET['category']));
}
//边栏专题
if (TPL::is_output('block/sidebar_feature.tpl.htm', 'question/square')) {
TPL::assign('feature_list', $this->model('module')->feature_list());
}
if ($_GET['category']) {
if (is_digits($_GET['category'])) {
$category_info = $this->model('system')->get_category_info($_GET['category']);
} else {
$category_info = $this->model('system')->get_category_info_by_url_token($_GET['category']);
}
}
if ($category_info) {
TPL::assign('category_info', $category_info);
$this->crumb($category_info['title'], '/question/category-' . $category_info['id']);
$meta_description = $category_info['title'];
if ($category_info['description']) {
$meta_description .= ' - ' . $category_info['description'];
}
TPL::set_meta('description', $meta_description);
}
if ($_GET['feature_id']) {
$feature_info = $this->model('feature')->get_feature_by_id($_GET['feature_id']);
TPL::assign('feature_info', $feature_info);
}
if ($feature_info['id']) {
$topic_ids = $this->model('feature')->get_topics_by_feature_id($feature_info['id']);
}
if (!$_GET['sort_type']) {
$_GET['sort_type'] = 'new';
}
if ($_GET['sort_type'] == 'hot') {
$question_list = $this->model('posts')->get_hot_posts('question', $category_info['id'], $topic_ids, $_GET['day'], $_GET['page'], get_setting('contents_per_page'));
} else {
$question_list = $this->model('posts')->get_posts_list('question', $_GET['page'], get_setting('contents_per_page'), $_GET['sort_type'], $topic_ids, $category_info['id'], $_GET['answer_count'], $_GET['day'], $_GET['is_recommend']);
}
if ($question_list) {
foreach ($question_list as $key => $val) {
if ($val['answer_count']) {
$question_list[$key]['answer_users'] = $this->model('question')->get_answer_users_by_question_id($val['question_id'], 2, $val['published_uid']);
}
}
}
TPL::assign('pagination', AWS_APP::pagination()->initialize(array('base_url' => get_js_url('/question/sort_type-' . preg_replace("/[\\(\\)\\.;']/", '', $_GET['sort_type']) . '__category-' . $category_info['id'] . '__day-' . intval($_GET['day']) . '__is_recommend-' . $_GET['is_recommend']) . '__feature_id-' . $feature_info['id'], 'total_rows' => $this->model('posts')->get_posts_list_total(), 'per_page' => get_setting('contents_per_page')))->create_links());
TPL::assign('posts_list', $question_list);
TPL::assign('question_list_bit', TPL::output('explore/ajax/list', false));
TPL::output('question/square');
}
开发者ID:egogg,项目名称:naokr-website,代码行数:66,代码来源:main.php
示例17: topic_action
public function topic_action()
{
if (is_digits($_GET['id'])) {
if (!($topic_info = $this->model('topic')->get_topic_by_id($_GET['id']))) {
$topic_info = $this->model('topic')->get_topic_by_title($_GET['id']);
}
} else {
if (!($topic_info = $this->model('topic')->get_topic_by_title($_GET['id']))) {
$topic_info = $this->model('topic')->get_topic_by_url_token($_GET['id']);
}
}
if (!$topic_info) {
H::redirect_msg(AWS_APP::lang()->_t('话题不存在'), '/m/');
}
if ($topic_info['merged_id']) {
if ($this->model('topic')->get_topic_by_id($topic_info['merged_id'])) {
HTTP::redirect('/m/topic/' . $topic_info['merged_id'] . '?rf=' . $topic_info['topic_id']);
} else {
$this->model('topic')->remove_merge_topic($topic_info['topic_id'], $topic_info['merged_id']);
}
}
if (urldecode($topic_info['url_token']) != $_GET['id']) {
HTTP::redirect('/m/topic/' . $topic_info['url_token'] . '?rf=' . $_GET['rf']);
}
if (is_digits($_GET['rf']) and $_GET['rf']) {
if ($from_topic = $this->model('topic')->get_topic_by_id($_GET['rf'])) {
$redirect_message[] = AWS_APP::lang()->_t('话题 (%s) 已与当前话题合并', $from_topic['topic_title']);
}
}
if ($merged_topics = $this->model('topic')->get_merged_topic_ids($topic_info['topic_id'])) {
foreach ($merged_topics as $key => $val) {
$merged_topic_ids[] = $val['source_id'];
}
$contents_topic_id = $topic_info['topic_id'] . ',' . implode(',', $merged_topic_ids);
if ($merged_topics_info = $this->model('topic')->get_topics_by_ids($merged_topic_ids)) {
foreach ($merged_topics_info as $key => $val) {
$contents_topic_title[] = $val['topic_title'];
}
}
$contents_topic_title = $topic_info['topic_title'] . ',' . implode(',', $contents_topic_title);
} else {
$contents_topic_id = $topic_info['topic_id'];
$contents_topic_title = $topic_info['topic_title'];
}
TPL::assign('contents_topic_id', $contents_topic_id);
TPL::assign('contents_topic_title', $contents_topic_title);
if ($this->user_id) {
$topic_info['has_focus'] = $this->model('topic')->has_focus_topic($this->user_id, $topic_info['topic_id']);
}
TPL::assign('topic_info', $topic_info);
$this->crumb(AWS_APP::lang()->_t('话题'), '/m/topic/');
$this->crumb($topic_info['topic_title'], '/m/topic/' . $topic_info['topic_title']);
TPL::assign('redirect_message', $redirect_message);
TPL::assign('best_answer_users', $this->model('topic')->get_best_answer_users_by_topic_id($topic_info['topic_id'], 5));
TPL::output('m/topic');
}
开发者ID:Vizards,项目名称:HeavenSpree,代码行数:56,代码来源:main.php
示例18: foreach
<?php
if (!defined('IN_ANWSION')) {
die;
}
if (!is_digits($_GET['page'])) {
$_GET['page'] = 1;
}
$user_list = $this->model('account')->fetch_page('users', null, 'uid ASC', $_GET['page'], 300);
if ($user_list) {
foreach ($user_list as $user_info) {
$article_count = $this->model('article')->count('article', 'uid = ' . $user_info['uid']);
$this->model('account')->update('users', array('article_count' => $article_count), 'uid = ' . $user_info['uid']);
}
H::redirect_msg(AWS_APP::lang()->_t('正在升级数据库') . ', ' . AWS_APP::lang()->_t('批次: %s', $_GET['page']), '/upgrade/script/page-' . ($_GET['page'] + 1));
}
开发者ID:wenyinos,项目名称:wecenter,代码行数:16,代码来源:20141205.php
示例19: update_receiving_email_config
public function update_receiving_email_config($id = null, $action, $receiving_email_config = array())
{
if ($action == 'update' and !is_digits($id)) {
return false;
}
switch ($action) {
case 'add':
return $this->insert('receiving_email_config', $receiving_email_config);
break;
case 'update':
return $this->update('receiving_email_config', $receiving_email_config, 'id = ' . $id);
break;
default:
return false;
break;
}
}
开发者ID:Gradven,项目名称:what3.1.7,代码行数:17,代码来源:edm.php
示例20: remove_weixin_account
public function remove_weixin_account($account_id)
{
if (!is_digits($account_id) or $account_id === 0 or $account_id === '0') {
return false;
}
$this->delete('weixin_accounts', 'id = ' . $account_id);
$reply_rules_info = $this->fetch_all('weixin_reply_rule', 'account_id = ' . $account_id);
if ($reply_rules_info) {
$this->delete('weixin_reply_rule', 'account_id = ' . $account_id);
foreach ($reply_rules_info as $reply_rule_info) {
if ($reply_rule_info['image_file']) {
unlink(get_setting('upload_dir') . '/weixin/' . $reply_rule_info['image_file']);
unlink(get_setting('upload_dir') . '/weixin/square_' . $reply_rule_info['image_file']);
}
}
}
$this->model('openid_weixin_third')->remove_third_party_api_by_account_id($account_id);
}
开发者ID:Gradven,项目名称:what3.1.7,代码行数:18,代码来源:weixin.php
注:本文中的is_digits函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论