|
@@ -832,15 +832,20 @@ class AdvertAdminAction extends BaseAction{
|
|
}
|
|
}
|
|
//$uid 查询牛信云待发送日志
|
|
//$uid 查询牛信云待发送日志
|
|
public function select_sms_data_tmp_new($where){
|
|
public function select_sms_data_tmp_new($where){
|
|
- $sql = "select * from ly_sms_data_tmp_new $where ";
|
|
|
|
|
|
+ $sql = "select fid,count(*) as counts from ly_sms_data_tmp_new $where group by fid ";
|
|
$result = $this->getDbEntity()->query($sql);
|
|
$result = $this->getDbEntity()->query($sql);
|
|
return $result;
|
|
return $result;
|
|
}
|
|
}
|
|
|
|
|
|
//失败过高删除短信发送
|
|
//失败过高删除短信发送
|
|
- public function delete_smslog_dr($uid,$fid,$count){
|
|
|
|
|
|
+ public function delete_smslog_dr($uid){
|
|
$sql1 = "DELETE FROM `ly_sms_data_tmp_new` WHERE `uid`='{$uid}' ";
|
|
$sql1 = "DELETE FROM `ly_sms_data_tmp_new` WHERE `uid`='{$uid}' ";
|
|
$this->getDbEntity()->query($sql1);
|
|
$this->getDbEntity()->query($sql1);
|
|
|
|
+
|
|
|
|
+ return true;
|
|
|
|
+ }
|
|
|
|
+ //修改失败过高删除短信发送状态
|
|
|
|
+ public function up_smslog_dr($uid,$fid,$count){
|
|
$sql2 = "update ly_send_sms_log_count set status=1,nosend='{$count}' WHERE `log_id`='{$fid}'";
|
|
$sql2 = "update ly_send_sms_log_count set status=1,nosend='{$count}' WHERE `log_id`='{$fid}'";
|
|
$this->getDbEntity()->query($sql2);
|
|
$this->getDbEntity()->query($sql2);
|
|
return true;
|
|
return true;
|