|
|
|
@ -41,8 +41,8 @@ class MigrateStore extends Command |
|
|
|
{ |
|
|
|
$oldTableName = 'ims_cjdc_store_new'; |
|
|
|
$newTableName = 'lanzu_store_new'; |
|
|
|
$storeImgPath = 'QR_code/code_store_img/wx_store_';/* 商户小程序码 */ |
|
|
|
$storePayPath = 'QR_code/code_pay_img/wx_pay_';/* 收银二维码 */ |
|
|
|
// $storeImgPath = 'QR_code/code_store_img/wx_store_';/* 商户小程序码 */
|
|
|
|
// $storePayPath = 'QR_code/code_pay_img/wx_pay_';/* 收银二维码 */
|
|
|
|
// 判断表是否存在
|
|
|
|
if(!Schema::hasTable($oldTableName)){ |
|
|
|
var_dump('旧表不存在'); |
|
|
|
@ -106,10 +106,10 @@ class MigrateStore extends Command |
|
|
|
|
|
|
|
'introduction'=> strip_tags($value->details), |
|
|
|
|
|
|
|
'store_applet_img' => $storeImgPath.$storeId.'.jpg', |
|
|
|
'cash_code_img' => $storePayPath.$storeId.'.jpg', |
|
|
|
'store_applet_img' => '', |
|
|
|
'cash_code_img' => '', |
|
|
|
|
|
|
|
'created_at' => strtotime($value->sq_time), |
|
|
|
'created_at' => $value->time_add ?strtotime($value->time_add) : 0, |
|
|
|
'updated_at' => time(), |
|
|
|
]; |
|
|
|
|
|
|
|
|