Commit 2e9c79f3 authored by hujun's avatar hujun

经纪人交易列表

parent f8af31ac
......@@ -109,8 +109,8 @@ class Member extends Basic
->select();
$num = count($send_time); //发送数量
if ((time() - strtotime($send_time[$num-1]->send_time) < 58) && $num != 0) {
$data['msg'] = '1分钟内不能再次获取验证码';
if ((time() - strtotime($send_time[$num-1]->send_time) < 300) && $num != 0) {
$data['msg'] = '5分钟内不能再次获取验证码';
} elseif ($num > 7){
$data['msg'] = '短信发送超过上限';
} else {
......@@ -134,7 +134,7 @@ class Member extends Basic
}
$message = new MessageUntils();
$_code = mt_rand(1000, 9999) . '';
// $result = $message->sendCCPSMS($phone, array($_code, '5分钟'), 214759);
$result = $message->sendCCPSMS($phone, array($_code, '5分钟'), 214759);
$noteLog->phone = $phone;
$noteLog->template_msg = '【同联商业】您的验证码为'.$_code.',请于5分钟内正确输入,如非本人操作,请忽略此短信。';
......
......@@ -43,10 +43,7 @@ class Evaluate extends Model
}
$sign = new EvaluateSign();
$applies = new Applies();
$watch = new AppointWatchShop();
$journal = new JournalAccounts();
$house = new HouseInfos();
foreach ($result as $k=>$v) {
$v->evaluate_grade = floor($v->evaluate_grade/2);
$data[$k] = $v->getData();
......@@ -61,11 +58,12 @@ class Evaluate extends Model
if ($v->source == 10) {
$applies_time = $watch->alias('a')
->field('b.receptiontime')
->join('applies b','b.id = a.apply_id','left')
->where('a.apply_id',$v->record_id)
->join('applies b','b.id = a.applies_id','left')
->where('a.applies_id',$v->record_id)
->find();
} else {
$applies_time = $journal->alias('a')
$applies_time = Db::table('Journalaccounts')->alias('a')
->field('b.receptiontime')
->join('applies b','b.id = a.apply_id','left')
->where('a.apply_id',$v->record_id)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment