|
@@ -121,6 +121,7 @@ class Companys extends Api
|
|
|
$comeform = $this->request->param('comeform','');
|
|
|
$where['id'] = $id;
|
|
|
$where['status'] = 1;
|
|
|
+ $time = time();
|
|
|
$company = $this->model->where($where)->find();
|
|
|
if (empty($company)) {
|
|
|
throw new Exception('未找到门店信息');
|
|
@@ -145,6 +146,10 @@ class Companys extends Api
|
|
|
'company_id' => $id,
|
|
|
'staff_id' => 0,
|
|
|
'money' => 0.00,
|
|
|
+ 'address' => '',
|
|
|
+ 'createtime' => $time,
|
|
|
+ 'updatetime' => $time,
|
|
|
+ 'remark' => '',
|
|
|
'comefrom' => $comeform,
|
|
|
];
|
|
|
$walletRes = model('UserWallet')->insertGetId($walletData);
|