- Timestamp:
- Nov 11, 2014 4:41:59 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pro-violet-viettel/sourcecode/application/modules/admin/controllers/report.php
r445 r461 184 184 $data['paging'] = pagging($data); 185 185 foreach ($data['paidlogs'] as $index => $paidlog) { 186 $data['paidlogs'][$index]['username'] = $this->get_username($paidlog['us_id']);186 $data['paidlogs'][$index]['username'] = @$this->get_username($paidlog['us_id']); 187 187 } 188 188 … … 210 210 public function test() { 211 211 212 212 /* 213 213 for ($i = 1; $i <= 5000; $i++) { 214 214 $input['us_id'] = rand(1, 100); … … 222 222 223 223 die(); 224 225 for ($i = 1; $i <= 100; $i++) {224 */ 225 for ($i = 1; $i <= 200; $i++) { 226 226 $input['us_id'] = $i; 227 227 $input['cellphone'] = "01234567" . (100 + $i); … … 229 229 $input['acc_balanced'] = rand(100000, 1000000); 230 230 $input['expire_date'] = date("Y-m-d H:i:s", time()); 231 $input['created_time'] = date("Y-m-d H:i:s", time()); 232 $input['updated_time'] = date("Y-m-d H:i:s", time()); 231 $time = (rand((time() - (12 * 30 * 24 * 60 * 60)), time())); 232 $input['created_time'] = date("Y-m-d H:i:s", $time); 233 $input['updated_time'] = date("Y-m-d H:i:s", $time); 233 234 $this->load->model('user_model'); 234 235 $this->user_model->insert($input);
Note: See TracChangeset
for help on using the changeset viewer.